ddns-scripts: netcup.com use json_load_file

Replace manual file loading via cat with json_load_file for parsing
JSON data. This uses the intended helper function and improves
code clarity and robustness.

Signed-off-by: Tim Flubshi <flubshi@gmail.com>
This commit is contained in:
Tim Flubshi
2026-04-26 17:52:27 +02:00
committed by Florian Eckert
parent c51e3100fa
commit bd6a551669
@@ -127,7 +127,7 @@ netcup_check_response() {
local __context="$1"
local __status __statuscode __shortmsg
json_load "$(cat "$DATFILE")"
json_load_file "$DATFILE"
json_get_var __status "status"
json_get_var __statuscode "statuscode"
json_get_var __shortmsg "shortmessage"