repo.or.cz
/
zeroinstall.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Allow passing arguments to the runner
[zeroinstall.git]
/
tests
/
runnable
/
runner
blob
4edc23f27a817413fdb2295faadc5c5537bc9e44
1
#!/bin/sh
2
if
[
"
$1
"
!=
"runner-arg"
];
then
3
exit
1
4
fi
5
shift
6
if
[
"
$1
"
!=
"arg-for-runner"
];
then
7
exit
1
8
fi
9
shift
10
script
=
$1
11
shift
12
echo
Runner
:
script
=
`cat
$script
`
:
args
=
$@