From 795c8ea75bce45cdd5d10cb7f4b72ad9219a617b Mon Sep 17 00:00:00 2001 From: Mark Hills Date: Tue, 21 May 2013 21:35:51 +0100 Subject: [PATCH] Always use set -u to avoid confusion --- bpm-graph | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/bpm-graph b/bpm-graph index 3ab26be..0072f93 100755 --- a/bpm-graph +++ b/bpm-graph @@ -21,7 +21,7 @@ # View graph of BPM analysis # -set -e +set -eu usage() { @@ -35,13 +35,11 @@ See the bpm-graph(1) man page for more information. END } -if [ -z "$1" ] || [ "$1" = "-h" ]; then +if [ -z "${1-}" ] || [ "$1" = "-h" ]; then usage >&2 exit 1 fi -set -u - FILE="$1" shift