diff --git a/tools/idem_apt_install b/tools/idem_apt_install index 7233246..46996de 100755 --- a/tools/idem_apt_install +++ b/tools/idem_apt_install @@ -16,7 +16,8 @@ function usage { exit 1 } -source "$MIAOU_BASH_DIR"/lib/functions.sh +BASEDIR=$(dirname "$0") +source "$BASEDIR"/../lib/functions.sh [ "$(id -u)" -ne 0 ] && echo 'root privilege required' && exit 2 [[ $# -lt 1 ]] && usage