mirror of
https://github.com/samsonjs/vibetunnel.git
synced 2026-04-27 15:17:38 +00:00
Prioritize same path first
This commit is contained in:
parent
d0e92ea932
commit
014bbb9e1e
1 changed files with 7 additions and 3 deletions
|
|
@ -2,7 +2,7 @@
|
||||||
# vt - VibeTunnel CLI wrapper
|
# vt - VibeTunnel CLI wrapper
|
||||||
# Simple bash wrapper that passes through to vibetunnel with shell expansion
|
# Simple bash wrapper that passes through to vibetunnel with shell expansion
|
||||||
|
|
||||||
VERSION="1.0.4"
|
VERSION="1.0.5"
|
||||||
|
|
||||||
# Handle version flag
|
# Handle version flag
|
||||||
if [ "$1" = "--version" ] || [ "$1" = "-v" ]; then
|
if [ "$1" = "--version" ] || [ "$1" = "-v" ]; then
|
||||||
|
|
@ -11,8 +11,12 @@ if [ "$1" = "--version" ] || [ "$1" = "-v" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Find vibetunnel binary (prefer Go implementation)
|
# Find vibetunnel binary (prefer Go implementation)
|
||||||
# First check if vibetunnel is in PATH (most common after installation)
|
# First check in the same directory as this script (when installed together)
|
||||||
if command -v vibetunnel >/dev/null 2>&1; then
|
SCRIPT_DIR="$(dirname "$0")"
|
||||||
|
if [ -x "$SCRIPT_DIR/vibetunnel" ]; then
|
||||||
|
VIBETUNNEL="$SCRIPT_DIR/vibetunnel"
|
||||||
|
elif command -v vibetunnel >/dev/null 2>&1; then
|
||||||
|
# Check if vibetunnel is in PATH
|
||||||
VIBETUNNEL="vibetunnel"
|
VIBETUNNEL="vibetunnel"
|
||||||
elif [ -x "/usr/local/bin/vibetunnel" ]; then
|
elif [ -x "/usr/local/bin/vibetunnel" ]; then
|
||||||
VIBETUNNEL="/usr/local/bin/vibetunnel"
|
VIBETUNNEL="/usr/local/bin/vibetunnel"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue