Use _DIR instead of pwd

This commit is contained in:
Rezart Qelibari
2022-02-14 14:05:57 +01:00
parent 2b87c97692
commit 141f3faeea
2 changed files with 7 additions and 4 deletions

View File

@@ -24,8 +24,11 @@ function main() {
pushd -q "${tmpdir}"
cloneMacOSSystemRepo
cloneZSHLibRepo
sudo ./install.sh
sudo "${tmpdir}/install.sh"
popd -q
}
main
if [[ "${ZSH_EVAL_CONTEXT}" == toplevel ]]; then
_DIR="${0:A:h}"
main
fi