From 63d04ae23980bd5f17aad63116a3f18040c67858 Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Sat, 24 Jul 2021 17:48:37 -0400 Subject: [PATCH] fix enable.sh for zsh default on OSX is zsh instead of bash and our enable.sh uses a bash internal. This should work for bash and zsh. --- candi.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/candi.sh b/candi.sh index 3d5bf2d..c7f766a 100755 --- a/candi.sh +++ b/candi.sh @@ -1023,7 +1023,9 @@ cat > ${CONFIGURATION_PATH}/enable.sh <<"EOF" # find path of script: pushd . >/dev/null -P="${BASH_SOURCE[0]}";cd `dirname $P`;P=`pwd`; +P="${BASH_SOURCE[0]:-${(%):-%x}}"; +P=`dirname ${P}`; +P=`cd ${P};pwd`; popd >/dev/null for f in $P/* -- 2.39.5