You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
395 B
19 lines
395 B
#!/bin/sh
|
|
|
|
TEST_OPT_@ID@_FOUND=0
|
|
ARGS=""
|
|
for a in "$@"; do
|
|
if [ "x${TEST_OPT_@ID@}" != "x" -a "x${TEST_OPT_@ID@}" = "x$a" ]; then
|
|
TEST_OPT_@ID@_FOUND=1
|
|
else
|
|
ARGS="$ARGS \"$a\""
|
|
fi
|
|
done
|
|
|
|
if [ "x${TEST_OPT_@ID@}" != "x" -a "x${TEST_OPT_@ID@_FOUND}" != "x1" ]; then
|
|
echo "Not given option '${TEST_OPT_@ID@}' as expected!"
|
|
exit 1
|
|
fi
|
|
|
|
eval "\"@COMMAND@\"" "$ARGS"
|