mirror of
https://github.com/samsonjs/vibetunnel.git
synced 2026-04-27 15:17:38 +00:00
Fix vt
This commit is contained in:
parent
36735223af
commit
9cbe77f12c
1 changed files with 10 additions and 10 deletions
|
|
@ -27,6 +27,16 @@ find_claude() {
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Get the real path of this script, resolving any symlinks
|
||||||
|
SCRIPT_REAL_PATH="$(readlink -f "${BASH_SOURCE[0]}" 2>/dev/null || greadlink -f "${BASH_SOURCE[0]}" 2>/dev/null || realpath "${BASH_SOURCE[0]}" 2>/dev/null)"
|
||||||
|
if [[ -z "$SCRIPT_REAL_PATH" ]]; then
|
||||||
|
# Fallback for systems without readlink -f, greadlink, or realpath
|
||||||
|
SCRIPT_REAL_PATH="${BASH_SOURCE[0]}"
|
||||||
|
while [[ -L "$SCRIPT_REAL_PATH" ]]; do
|
||||||
|
SCRIPT_REAL_PATH="$(readlink "$SCRIPT_REAL_PATH")"
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
# Get the directory where this script is actually located (Resources folder)
|
# Get the directory where this script is actually located (Resources folder)
|
||||||
SCRIPT_DIR="$(cd "$(dirname "$SCRIPT_REAL_PATH")" && pwd)"
|
SCRIPT_DIR="$(cd "$(dirname "$SCRIPT_REAL_PATH")" && pwd)"
|
||||||
|
|
||||||
|
|
@ -144,16 +154,6 @@ EOF
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Get the real path of this script, resolving any symlinks
|
|
||||||
SCRIPT_REAL_PATH="$(readlink -f "${BASH_SOURCE[0]}" 2>/dev/null || greadlink -f "${BASH_SOURCE[0]}" 2>/dev/null || realpath "${BASH_SOURCE[0]}" 2>/dev/null)"
|
|
||||||
if [[ -z "$SCRIPT_REAL_PATH" ]]; then
|
|
||||||
# Fallback for systems without readlink -f, greadlink, or realpath
|
|
||||||
SCRIPT_REAL_PATH="${BASH_SOURCE[0]}"
|
|
||||||
while [[ -L "$SCRIPT_REAL_PATH" ]]; do
|
|
||||||
SCRIPT_REAL_PATH="$(readlink "$SCRIPT_REAL_PATH")"
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Function to resolve command through user's shell
|
# Function to resolve command through user's shell
|
||||||
resolve_command() {
|
resolve_command() {
|
||||||
local user_shell="${SHELL:-/bin/bash}"
|
local user_shell="${SHELL:-/bin/bash}"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue