diff options
| author | Michael Forney <mforney@mforney.org> | 2020-01-03 10:44:35 -0800 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2020-01-03 10:53:34 -0800 |
| commit | 24c94be90c99adbcf4a67e5d7aa9b360cae9af4b (patch) | |
| tree | 34bd7e101942c04ffdcb82e72a5755b740ce221f /scripts/probe-size.sh | |
| parent | 1febbd87d76770808bf8ea9adcbead6de77b0a0e (diff) | |
scripts: Check that we got the right number of parameters
Diffstat (limited to 'scripts/probe-size.sh')
| -rw-r--r-- | scripts/probe-size.sh | 5 |
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 |
