allow user to pass RMTAB file name from environment
authorErez Zadok <ezk@cs.sunysb.edu>
Mon, 12 May 2014 15:54:20 +0000 (11:54 -0400)
committerErez Zadok <ezk@cs.sunysb.edu>
Mon, 12 May 2014 15:54:20 +0000 (11:54 -0400)
scripts/fixrmtab.in

index 1289bc0ba21cfdb7fe0b5a409bd8289d1e0020be..a1fbebf615078b2ddc839736a5628a899cd64d08 100755 (executable)
 
 #set -x
 
-RMTAB=/etc/rmtab
+# allow user to pass RMTAB file name from environment
+if test -z "${RMTAB}" ; then
+       RMTAB=/etc/rmtab
+fi
+
 if [ ! -f "$RMTAB" ]; then
        exit 0
 fi