summaryrefslogtreecommitdiff
path: root/conf
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-07-28 12:02:31 +0200
committerErich Eckner <git@eckner.net>2017-07-28 12:02:31 +0200
commit673d04702ad4336a273b539e6022b52c33543cfd (patch)
treeaa7b36e6ef6a057b6dc25ab10bf9db32d768213f /conf
parent21e4bccf4ee5fc0a07251b911943b89fbe2b08ec (diff)
downloadbuilder-673d04702ad4336a273b539e6022b52c33543cfd.tar.xz
conf/default.conf: recognize bash and dash if executed with path
Diffstat (limited to 'conf')
-rwxr-xr-xconf/default.conf2
1 files changed, 1 insertions, 1 deletions
diff --git a/conf/default.conf b/conf/default.conf
index 03001f0..ff47333 100755
--- a/conf/default.conf
+++ b/conf/default.conf
@@ -6,7 +6,7 @@ set -e
export LANG=C
# dirty hack to get this stuff debugable from a bash
-if [ "x$0" = "x-bash" ] || [ "x$0" = "xbash" ] || [ "x$0" = "xdash" ]; then
+if [ "x${0##*/}" = "x-bash" ] || [ "x${0##*/}" = "xbash" ] || [ "x${0##*/}" = "xdash" ]; then
base_dir="$(pwd)"
else
base_dir="$(dirname "$(readlink -f "$0")")/.."