summaryrefslogtreecommitdiff
path: root/scripts/probe-size.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/probe-size.sh')
-rw-r--r--scripts/probe-size.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/probe-size.sh b/scripts/probe-size.sh
index eabfe3b9..ff671ef0 100644
--- a/scripts/probe-size.sh
+++ b/scripts/probe-size.sh
@@ -1,5 +1,10 @@
set -e
+if [ "$#" -lt 2 ] ; then
+ echo 'usage: probe-size.sh var command...' >&2
+ exit 2
+fi
+
var=$1
shift
for size in 8 4 2 1 ; do