Always use set -u to avoid confusion
This commit is contained in:
parent
a0bd601464
commit
795c8ea75b
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue