From 673d04702ad4336a273b539e6022b52c33543cfd Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 28 Jul 2017 12:02:31 +0200 Subject: conf/default.conf: recognize bash and dash if executed with path --- conf/default.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'conf/default.conf') 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")")/.." -- cgit v1.2.3