From ccc7760f09e7aa5f09f74a5c1f3be9a7b1e3cbf9 Mon Sep 17 00:00:00 2001 From: pvincent Date: Sun, 5 May 2024 14:33:42 +0400 Subject: [PATCH] fix: idem_apt_install --- tools/idem_apt_install | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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