diff options
author | Sven Gothel <[email protected]> | 2021-07-18 05:47:37 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2021-07-18 05:47:37 +0200 |
commit | 8f528172d4d3550ed5529d65be3481d381d6ebdb (patch) | |
tree | 784ecfaf4673456bbb50ba3ee805c5754971c0c5 | |
parent | e0697c955ef0457d16f74d7e40e9ade9cf4349af (diff) |
Use $BASH_SOURCE[0] instead of $0
-rwxr-xr-x | build.sh | 2 | ||||
-rwxr-xr-x | scripts/apt-check.sh | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -217,7 +217,7 @@ if [ "$(id -u)" != "0" ]; then exit 1 fi -BASE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +BASE_DIR=`dirname $(readlink -f "${BASH_SOURCE[0]}")` export BASE_DIR while getopts "c:" flag diff --git a/scripts/apt-check.sh b/scripts/apt-check.sh index fe7cd90..67894a2 100755 --- a/scripts/apt-check.sh +++ b/scripts/apt-check.sh @@ -2,7 +2,7 @@ #set -x -sdir=`dirname $(readlink -f $0)` +sdir=`dirname $(readlink -f "${BASH_SOURCE[0]}")` rootdir=`dirname $sdir` packfile=$1 |