gardesk/gar / bb19a9d

Browse files

prefer ~/.local/bin/gar over system paths for dev overrides

Authored by mfwolffe <wolffemf@dukes.jmu.edu>
SHA
bb19a9dd6eb090cab85621e656edb4218611e04f
Parents
15a7748
Tree
933a39c

1 changed file

StatusFile+-
M gar-session.sh 2 2
gar-session.shmodified
@@ -2,10 +2,10 @@
22
 # gar session wrapper - sets up environment before starting gar
33
 # This script is typically installed to /usr/local/share/gar/gar-session.sh
44
 
5
-# Find gar binary - check common locations
5
+# Find gar binary - check common locations (user local first for dev overrides)
66
 GAR_BIN="${GAR_BIN:-}"
77
 if [ -z "$GAR_BIN" ]; then
8
-    for path in /usr/local/bin/gar /usr/bin/gar "$HOME/.local/bin/gar"; do
8
+    for path in "$HOME/.local/bin/gar" /usr/local/bin/gar /usr/bin/gar; do
99
         if [ -x "$path" ]; then
1010
             GAR_BIN="$path"
1111
             break