Fix shell scripting botch wrt empty variable handling.
authorNathan Scott <nathans@sgi.com>
Fri, 18 Aug 2006 15:40:32 +0000 (15:40 +0000)
committerNathan Scott <nathans@sgi.com>
Fri, 18 Aug 2006 15:40:32 +0000 (15:40 +0000)
Merge of master-melb:xfs-cmds:26814a by kenmcd.

common.quota

index 77368a55b87acc2be1feb35115b55d11102fa66f..a00b832ea97fbafc245af100c10b3a3dd7bca92c 100644 (file)
@@ -90,7 +90,7 @@ _choose_gid()
 
 _choose_prid()
 {
-    if [ $projid_file == "" ]; then
+    if [ "X$projid_file" == "X" ]; then
        projid_file=/etc/projid
     fi
     if [ ! -f $projid_file ]; then