aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbuild.sh2
-rwxr-xr-xscripts/apt-check.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/build.sh b/build.sh
index 4c6b7fa..84643ff 100755
--- a/build.sh
+++ b/build.sh
@@ -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