diff --git a/zsh/lib/config.zsh b/zsh/lib/config.zsh index f938311..cb490b1 100644 --- a/zsh/lib/config.zsh +++ b/zsh/lib/config.zsh @@ -4,7 +4,7 @@ SCWRYPTS_ROOT="$(cd -- ${0:a:h}; git rev-parse --show-toplevel 2>/dev/null)" [ $SCWRYPTS_ROOT ] && [ -d "$SCWRYPTS_ROOT" ] \ - || SCWRYPTS_ROOT="echo \"${0:a:h}\" | sed -n 's|\(share/scwrypts\).*$|\1|p'" + || SCWRYPTS_ROOT="$(echo "${0:a:h}" | sed -n 's|\(share/scwrypts\).*$|\1|p')" [ $SCWRYPTS_ROOT ] && [ -d "$SCWRYPTS_ROOT" ] || { echo "cannot determine scwrypts root path for current installation; aborting"