From c5fa15d28d49a810a81eb13a9f043d3165822be7 Mon Sep 17 00:00:00 2001 From: h0tznpl0tz Date: Thu, 11 Sep 2025 14:28:38 +0200 Subject: [PATCH] Fix symlink resolution in exitrace MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- legacy/exitrace/exitrace.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/legacy/exitrace/exitrace.sh b/legacy/exitrace/exitrace.sh index 0b78107..afb2f38 100755 --- a/legacy/exitrace/exitrace.sh +++ b/legacy/exitrace/exitrace.sh @@ -21,8 +21,8 @@ set -euo pipefail -# Script directory -SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +# Script directory (symlink-robust) +SCRIPT_DIR="$(cd "$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")" && pwd)" # Load modules if [[ -f "$SCRIPT_DIR/lib/date_utils.sh" ]]; then