summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/main.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.sh b/src/main.sh
index f8b4cc5..2fbbdbf 100644
--- a/src/main.sh
+++ b/src/main.sh
@@ -46,9 +46,9 @@ main()
local cmd=
local status=
- if [ -f "${0%/*}/.builddirstamp" ]; then
+ if [ -f "$(dirname "${0}")/.builddirstamp" ]; then
in_place=true
- builddir="${0%/*}"
+ builddir="$(dirname "${0}")"
else
in_place=false
builddir=''