[Lunar-commits] r19355 - lunar-iso/trunk/lunar-install/sbin

Auke Kok sofar at lunar-linux.org
Tue Mar 21 04:47:54 UTC 2006


Author: sofar
Date: 2006-03-21 04:47:51 +0000 (Tue, 21 Mar 2006)
New Revision: 19355

Modified:
   lunar-iso/trunk/lunar-install/sbin/lunar-install
Log:
safeguard against empty string


Modified: lunar-iso/trunk/lunar-install/sbin/lunar-install
===================================================================
--- lunar-iso/trunk/lunar-install/sbin/lunar-install	2006-03-21 04:45:48 UTC (rev 19354)
+++ lunar-iso/trunk/lunar-install/sbin/lunar-install	2006-03-21 04:47:51 UTC (rev 19355)
@@ -661,7 +661,7 @@
 								SPARE=$(echo "$SPARE,$NEW" | sed -e 's/^,//')
 							fi
 							block_devices use $NEW
-							if [ $(fdisk -l ${NEW/[0-9]*/} | sed 's/\*/ /' | grep "^$NEW" | awk '{print $5}') != "fd" ]; then
+							if [ "$(fdisk -l ${NEW/[0-9]*/} | sed 's/\*/ /' | grep "^$NEW" | awk '{print $5}')" != "fd" ]; then
 								msgbox "The partition type of this device is not 0xFD (Linux RAID Autodetect). You should correct this in the partition table with a partitioning tool, otherwise linux will not automatically enable this RAID array at boot."
 							fi
 						fi



More information about the Lunar-commits mailing list