index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2017-07-28 12:02:31 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-07-28 12:02:31 +0200 |
commit | 673d04702ad4336a273b539e6022b52c33543cfd (patch) | |
tree | aa7b36e6ef6a057b6dc25ab10bf9db32d768213f /conf/default.conf | |
parent | 21e4bccf4ee5fc0a07251b911943b89fbe2b08ec (diff) |
-rwxr-xr-x | conf/default.conf | 2 |
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")")/.." |