From d74a213313a455579cc6a6e6044901acc271fefa Mon Sep 17 00:00:00 2001 From: Rezart Qelibari Date: Mon, 25 Apr 2022 02:39:38 +0200 Subject: [PATCH] Compile zshlib inside temporary directory --- modules/08-install-zsh-libraries.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/08-install-zsh-libraries.sh b/modules/08-install-zsh-libraries.sh index 516c94a..16d07ee 100755 --- a/modules/08-install-zsh-libraries.sh +++ b/modules/08-install-zsh-libraries.sh @@ -6,8 +6,10 @@ function addLibToStartupFile() { function installZshlib() { local zshlibPath=${libDir}/astzweig_zshlib - zcompile -z -U ${zshlibPath} $(find "${ASTZWEIG_ZSHLIB}" -type f -perm +u=x -maxdepth 1) + pushd -q ${ASTZWEIG_ZSHLIB} + zcompile -z -U ${zshlibPath} $(find . -type f -perm +u=x -maxdepth 1) libs+=(${zshlibPath}.zwc) + popd -q } function modifyGlobalFpath() {