if error -> exit 1

This commit is contained in:
Lewis Kang
2016-05-13 11:18:19 +08:00
parent 04414276f3
commit 2c74660aa9

View File

@@ -281,7 +281,7 @@ installer_standard_gpt_install()
DEV=$(blkid | grep ONIE-BOOT | awk '{print $1}' | sed -e 's/[1-9][0-9]*:.*$//' | sed -e 's/\([0-9]\)\(p\)/\1/' | head -n 1)
[ -b "$DEV" ] || {
echo "Error: Unable to determine the block device to install NOS"
return 1
exit 1
}
fi