repo.or.cz
/
hband-tools.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
upload all-in-1 doc
[hband-tools.git]
/
óraállás-diktáló
/
nkmaram
blob
acccc11876ae83c4b1ce42a8a8803dc7228b773a
1
#!/bin/bash
2
3
errx
()
4
{
5
echo
"nkmaram: Parameter error: $*"
>&
2
6
exit
1
7
}
8
9
declare -a
opts
10
declare -a
prms
11
12
while
[
-n
"
$1
"
]
13
do
14
if
[
"
${1:0:1}
"
= - ]
15
then
16
opts
+=(
"
$1
"
)
17
else
18
prms
+=(
"
$1
"
)
19
fi
20
shift
21
done
22
23
exec
phantomjs2
--ssl-protocol
=
any
--ignore-ssl-errors
=
true
--web-security
=
false
"$(readlink -f "
$
(
dirname
"
$0
"
)
")/nkmaram.js"
"
${opts[@]}
"
"
${prms[@]}
"