Handle empty lines in map file
authorBryn M. Reeves <bmr@redhat.com>
Wed, 14 Nov 2012 14:28:42 +0000 (14:28 +0000)
committerBryn M. Reeves <bmr@redhat.com>
Wed, 14 Nov 2012 14:28:42 +0000 (14:28 +0000)
blkdevalias

index a825f40..e1da242 100755 (executable)
@@ -60,7 +60,7 @@ ba_load_wwid_map() {
         exit 1
     fi
     while read WWID ALIAS TYPE; do
-        if [[ $WWID == \#* ]]; then
+        if [[ $WWID == \#* ]] || [[ $WWID == "" ]]; then
             continue
         fi
         WWIDMAP[$WWID]="$ALIAS"