From df2078c7f7e330b02cd29cd6ef910baaf2f94d85 Mon Sep 17 00:00:00 2001 From: Username Date: Tue, 17 Feb 2026 23:18:50 +0100 Subject: [PATCH] tools: fix symlink resolution in ppf-logs and ppf-service --- tools/ppf-logs | 4 +++- tools/ppf-service | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/tools/ppf-logs b/tools/ppf-logs index 1e7640c..9e6f7b5 100755 --- a/tools/ppf-logs +++ b/tools/ppf-logs @@ -8,7 +8,9 @@ set -eu -SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +# Resolve to real path (handles symlinks from ~/.local/bin/) +SCRIPT_PATH="$(cd "$(dirname "$0")" && pwd)/$(basename "$0")" +SCRIPT_DIR="$(dirname "$(readlink -f "$SCRIPT_PATH")")" # shellcheck disable=SC1091 . "$SCRIPT_DIR/lib/ppf-common.sh" diff --git a/tools/ppf-service b/tools/ppf-service index 8b34324..301662f 100755 --- a/tools/ppf-service +++ b/tools/ppf-service @@ -8,7 +8,9 @@ set -eu -SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +# Resolve to real path (handles symlinks from ~/.local/bin/) +SCRIPT_PATH="$(cd "$(dirname "$0")" && pwd)/$(basename "$0")" +SCRIPT_DIR="$(dirname "$(readlink -f "$SCRIPT_PATH")")" # shellcheck disable=SC1091 . "$SCRIPT_DIR/lib/ppf-common.sh"