4
1
mirror of https://github.com/pfloos/quack synced 2024-12-22 12:23:50 +01:00

ensure correct path in quack rc

This commit is contained in:
Abdallah Ammar 2024-11-25 11:25:17 +01:00
parent f5604e0264
commit 01ccecd866

View File

@ -3,7 +3,7 @@
QUACK_ROOT="/NOT/FOUND" QUACK_ROOT="/NOT/FOUND"
case "$(ps -p $$ -ocomm=)" in case "$(ps -p $$ -ocomm=)" in
"zsh") "zsh")
QUACK_ROOT=$(dirname $0) QUACK_ROOT=$(dirname "$0")
;; ;;
*) *)
QUACK_ROOT=$(dirname "${BASH_SOURCE[0]}") QUACK_ROOT=$(dirname "${BASH_SOURCE[0]}")
@ -12,5 +12,4 @@ esac
export QUACK_ROOT="$( cd $QUACK_ROOT; pwd -P )" export QUACK_ROOT="$( cd $QUACK_ROOT; pwd -P )"
export PATH=${QUACK_ROOT}/bin:$PATH export PATH="${QUACK_ROOT}/bin:$PATH"