diff options
Diffstat (limited to 'scripts/probe.sh')
| -rw-r--r-- | scripts/probe.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/probe.sh b/scripts/probe.sh index 70867cdb..093a16dc 100644 --- a/scripts/probe.sh +++ b/scripts/probe.sh @@ -1,5 +1,10 @@ set -e +if [ "$#" -lt 2 ] ; then + echo 'usage: probe.sh var command...' >&2 + exit 2 +fi + var=$1 shift if "$@" 2>/dev/null ; then |
