1. Cameron Simpson
  2. css

Commits

Cameron Simpson  committed f530137

svcd: add "set -ue", set uninitialised variables.

  • Participants
  • Parent commits 5f50433
  • Branches default

Comments (0)

Files changed (1)

File bin/svcd

View file
  • Ignore whitespace
 #       - Cameron Simpson <cs@zip.com.au> 10dec2012
 #
 
+set -ue
+
 : ${LOGDIR:=$HOME/var/log}
 : ${VARRUN:=$HOME/var/run}
 
 logdir=$LOGDIR/svc
+name=
 disable_flag=
+pidfile=
 trace=set-x
 once=
 delay=1
 
 ok()
 {
-  [ -z "$flag" ] || not flag -w "$disable_flag"
+  [ -z "$disable_flag" ] || not flag -w "$disable_flag"
   [ -z "$testcmd" ] || sh -c "$testcmd"
 }