dns_dyn.sh, remove empty line at end
dns_dyn.sh, remove trailing spaces at end of line
Replace 'head -n' with the '_head_n' function
Update main README.md DNS API list
e.g. [[ ]] -> [ ] and 'which' -> command -V
Although this is not strictly needed, it keeps the project uniformly POSIX.
Signed-off-by: Bastian Bittorf <bb@npl.de>
message:
SC2034: $VARNAME appears unused. Verify it or export it.
most of these are related to the style:
we generate global vars, which are used in other functions.
the var "lexical_url" was really unused (left it as comment)
the travis-check now does not need anymore special flags.
Signed-off-by: Bastian Bittorf <bb@npl.de>
"Don't use [] around ranges in tr, it replaces literal square brackets."
this introduces another warning:
"Use '[:lower:]' to support accents and foreign alphabets."
This is more a style thingy because we really want to only catch A-Z.
work around this by using a shellcheck-directive and a comment
that the [:lower:] will not work with e.g. busybox-ash.
if we later really want to use [:lower:], we should use 'sed' for that.