No need to use || exit 1

We run the script with set -e, so on the first error we will
exit automatically.
This commit is contained in:
sin 2014-03-04 13:43:05 +00:00
parent 50858520ca
commit 0239116cb9

View File

@ -26,14 +26,14 @@ w
EOF
) | fdisk $img
lodev=$(losetup -f --show $img) || exit 1
lodev=$(losetup -f --show $img)
partition="$lodev"p1
mkfs.ext2 -L MORPHEUS $partition || exit 1
mount $partition /mnt || exit 1
mkfs.ext2 -L MORPHEUS $partition
mount $partition /mnt
rmdir /mnt/lost+found
fakeroot cp -arP "$root"/* /mnt
extlinux --install /mnt/boot || exit 1
extlinux --install /mnt/boot
dd if=stuff/mbr.bin of=$lodev conv=notrunc bs=440 count=1
sync