compile fixes

This commit is contained in:
David Young
2026-04-30 07:20:14 -06:00
parent 73a6b7a83b
commit 0b366fc383
2 changed files with 4 additions and 3 deletions

View File

@@ -2,7 +2,8 @@
#
# Purpose: Check for available version updates in binaries.conf and compile.conf
HAMPACK_DIR="${HAMPACK_DIR:-$HOME/.local/share/HamPack}"
SCRIPT_DIR=$(dirname "$(realpath "$0")")
HAMPACK_DIR="${HAMPACK_DIR:-$SCRIPT_DIR}"
BINARIES_CONF="${HAMPACK_BINARIES_CONF:-$HAMPACK_DIR/binaries.conf}"
COMPILE_CONF="${HAMPACK_COMPILE_CONF:-$HAMPACK_DIR/compile.conf}"
@@ -30,7 +31,7 @@ print_result() {
local manual_url="$4"
if [ -n "$manual_url" ]; then
printf " %-20s pinned=%-15s (manual check: %s)\n" "$app" "$pinned" "$manual_url"
printf " %-20s pinned=%-15s (manual check: %s)\n" "$app" "$pinned" "${manual_url%/*}"
elif [ -z "$latest" ]; then
printf " %-20s pinned=%-15s (GitHub API unavailable)\n" "$app" "$pinned"
elif [ "$pinned" = "$latest" ]; then