Always use set -u to avoid confusion

This commit is contained in:
Mark Hills 2013-05-21 21:35:51 +01:00
parent a0bd601464
commit 795c8ea75b
1 changed files with 2 additions and 4 deletions

View File

@ -21,7 +21,7 @@
# View graph of BPM analysis # View graph of BPM analysis
# #
set -e set -eu
usage() usage()
{ {
@ -35,13 +35,11 @@ See the bpm-graph(1) man page for more information.
END END
} }
if [ -z "$1" ] || [ "$1" = "-h" ]; then if [ -z "${1-}" ] || [ "$1" = "-h" ]; then
usage >&2 usage >&2
exit 1 exit 1
fi fi
set -u
FILE="$1" FILE="$1"
shift shift