From daca986bff3296dd5f6eca2b9a3aa345d66f0fd0 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Thu, 22 Dec 2016 11:41:08 +1300 Subject: Enforce args for vest(1df) and vex(1df) --- bin/vest | 4 ++++ bin/vex | 4 ++++ 2 files changed, 8 insertions(+) (limited to 'bin') diff --git a/bin/vest b/bin/vest index db73e86d..91a0a3a9 100755 --- a/bin/vest +++ b/bin/vest @@ -1,2 +1,6 @@ #!/bin/sh +if [ "$#" -eq 0 ] ; then + printf >&2 'vest: Need test(1) arguments\n' + exit 2 +fi vex test "$@" diff --git a/bin/vex b/bin/vex index 66c9590f..908288ba 100755 --- a/bin/vex +++ b/bin/vex @@ -1,5 +1,9 @@ #!/bin/sh # Run a command and print a string to stdout showing pass/fail +if [ "$#" -eq 0 ] ; then + printf >&2 'vex: Need a command\n' + exit 2 +fi "$@" ex=$? case $ex in -- cgit v1.2.3