Resolve unneeded subshell
authorSebastian Pipping <sebastian@pipping.org>
Mon, 31 Jan 2011 12:44:24 +0000 (13:44 +0100)
committerSebastian Pipping <sebastian@pipping.org>
Mon, 31 Jan 2011 12:44:24 +0000 (13:44 +0100)
defaults/linuxrc

index bbe397e7c2f383b59d30ab953ac602c0dd1e9ea5..ee33a355d137f7111e6e43dfd97ab658730abb3f 100755 (executable)
@@ -724,8 +724,13 @@ fi
 cd "${CHROOT}"
 mkdir "${CHROOT}/proc" "${CHROOT}/sys" 2>/dev/null
 echo -ne "${BOLD}.${NORMAL}"
+
 # If devtmpfs is mounted assume genkernel mounted it at /dev and try unmounting it
-grep -qs devtmpfs /proc/mounts && ( umount /dev || echo '*: Failed to unmount the devtmpfs /dev!' )
+if grep -qs devtmpfs /proc/mounts
+then
+       umount /dev || echo '*: Failed to unmount the devtmpfs /dev!'
+fi
+
 umount /sys || echo '*: Failed to unmount the ramdisk /sys!'
 umount /proc || echo '*: Failed to unmount the ramdisk /proc!'
 echo -e "${BOLD}.${NORMAL}"