ddns-scripts: netcup.com use json_load_file
authorTim Flubshi <redacted>
Sun, 26 Apr 2026 15:52:27 +0000 (17:52 +0200)
committerFlorian Eckert <redacted>
Mon, 27 Apr 2026 12:26:29 +0000 (14:26 +0200)
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 <redacted>
net/ddns-scripts/files/usr/lib/ddns/update_netcup_com.sh

index d8da97a760196336212f1e7bdb5690c4a3fc283e..5ad204f0963b1f747df0c1598ee25bf52f47b265 100755 (executable)
@@ -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"
git clone https://git.99rst.org/PROJECT