From ccbd7aff900237ef258286943be75ee39b02f8e7 Mon Sep 17 00:00:00 2001 From: Sam Hadow Date: Sat, 25 Jul 2026 14:21:52 +0200 Subject: [PATCH] improve script: absolute path instead of relative --- freebox/freebox_reboot.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freebox/freebox_reboot.sh b/freebox/freebox_reboot.sh index 167d97e..c596c87 100755 --- a/freebox/freebox_reboot.sh +++ b/freebox/freebox_reboot.sh @@ -4,7 +4,7 @@ set -euo pipefail FREEBOX_HOST="${FREEBOX_HOST:-mafreebox.freebox.fr}" API_BASE="${API_BASE:-https://${FREEBOX_HOST}/api/v4}" APP_ID="${APP_ID:-fr.bash.reboot}" -TOKEN_FILE="${TOKEN_FILE:-./freebox_app_token.txt}" +TOKEN_FILE="${TOKEN_FILE:-$(dirname "$0")/freebox_app_token.txt}" CA_FILE="${CA_FILE:-$(dirname "$0")/freebox_ecc_root_ca.pem}" for cmd in curl jq openssl; do