git.99rst.org
/
openwrt-packages.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
c51e310
)
ddns-scripts: netcup.com use json_load_file
author
Tim Flubshi
<redacted>
Sun, 26 Apr 2026 15:52:27 +0000
(17:52 +0200)
committer
Florian 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
patch
|
blob
|
history
diff --git
a/net/ddns-scripts/files/usr/lib/ddns/update_netcup_com.sh
b/net/ddns-scripts/files/usr/lib/ddns/update_netcup_com.sh
index d8da97a760196336212f1e7bdb5690c4a3fc283e..5ad204f0963b1f747df0c1598ee25bf52f47b265 100755
(executable)
--- a/
net/ddns-scripts/files/usr/lib/ddns/update_netcup_com.sh
+++ b/
net/ddns-scripts/files/usr/lib/ddns/update_netcup_com.sh
@@
-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