From 24c94be90c99adbcf4a67e5d7aa9b360cae9af4b Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Fri, 3 Jan 2020 10:44:35 -0800 Subject: scripts: Check that we got the right number of parameters --- scripts/probe-size.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'scripts/probe-size.sh') 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 -- cgit v1.2.3