Fix symlink resolution in exitrace
- Make SCRIPT_DIR robust for symlink execution - Resolves lib/ dependency loading when called via ~/bin symlink - Maintains compatibility with direct execution 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -21,8 +21,8 @@
|
|||||||
|
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
# Script directory
|
# Script directory (symlink-robust)
|
||||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
SCRIPT_DIR="$(cd "$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")" && pwd)"
|
||||||
|
|
||||||
# Load modules
|
# Load modules
|
||||||
if [[ -f "$SCRIPT_DIR/lib/date_utils.sh" ]]; then
|
if [[ -f "$SCRIPT_DIR/lib/date_utils.sh" ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user