ddns-scripts: fixes "sed: no previous regexp" 5944/head
authorChristian Schoenebeck <christian.schoenebeck@gmail.com>
Sat, 21 Apr 2018 10:11:46 +0000 (12:11 +0200)
committerChristian Schoenebeck <christian.schoenebeck@gmail.com>
Sat, 21 Apr 2018 10:11:46 +0000 (12:11 +0200)
commit6d8f45f759e688b827173132636be2e0a12e1ed1
tree2260865605ee2eda1ba1d8be9e4302370ebf4036
parentedd002dc3f6528c6dda394adc4be26969e6add65
ddns-scripts: fixes "sed: no previous regexp"

Rewritten Pull for #5885

When ran from the command line, the script prints
error messages like below. They are caused by supplying
empty "$password" and "$URL_PASS" for some log messages
like "130822       : Detect local IP on 'interface'".
The fix is to check if the values are not empty before running
through sed.

/etc/init.d/ddns start
sed: no previous regexp

Reported by Marc Benoit <marcb62185@gmail.com>

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
net/ddns-scripts/Makefile
net/ddns-scripts/files/dynamic_dns_functions.sh