tools: fix symlink resolution in ppf-logs and ppf-service

This commit is contained in:
Username
2026-02-17 23:18:50 +01:00
parent 782deab95d
commit df2078c7f7
2 changed files with 6 additions and 2 deletions

View File

@@ -8,7 +8,9 @@
set -eu 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 # shellcheck disable=SC1091
. "$SCRIPT_DIR/lib/ppf-common.sh" . "$SCRIPT_DIR/lib/ppf-common.sh"

View File

@@ -8,7 +8,9 @@
set -eu 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 # shellcheck disable=SC1091
. "$SCRIPT_DIR/lib/ppf-common.sh" . "$SCRIPT_DIR/lib/ppf-common.sh"