From af8e8b3b7353a961448ae974fcd144f0e9c14bd4 Mon Sep 17 00:00:00 2001 From: Jing Liu Date: Tue, 12 Dec 2023 22:42:16 -0600 Subject: [PATCH] fixed cmd to allocate gears.sh's location --- gears.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gears.sh b/gears.sh index 4c904c3..211964a 100644 --- a/gears.sh +++ b/gears.sh @@ -1,4 +1,4 @@ #!/bin/bash # add gears directory to PATH -GEARS="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)" +GEARS="$(cd "$(dirname "${BASH_SOURCE[0]:-$0}")" >/dev/null 2>&1 && pwd)" export PATH=$GEARS:$PATH