add pdf rotate tools; fix lpstat datetime format pattern
[hband-tools.git] / óraállás-diktáló / nkmaram
blobacccc11876ae83c4b1ce42a8a8803dc7228b773a
1 #!/bin/bash
3 errx()
5 echo "nkmaram: Parameter error: $*" >&2
6 exit 1
9 declare -a opts
10 declare -a prms
12 while [ -n "$1" ]
14 if [ "${1:0:1}" = - ]
15 then
16 opts+=("$1")
17 else
18 prms+=("$1")
20 shift
21 done
23 exec phantomjs2 --ssl-protocol=any --ignore-ssl-errors=true --web-security=false "$(readlink -f "$(dirname "$0")")/nkmaram.js" "${opts[@]}" "${prms[@]}"