From 6abb0fc7b8f654987a25955406edcfd1cef35cde Mon Sep 17 00:00:00 2001 From: yage Date: Tue, 16 Apr 2024 09:07:13 -0600 Subject: [PATCH] fix archlinux lookup --- zsh/lib/config.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"