From 2c74660aa97b738ec9157666c8b9b5a980f199ef Mon Sep 17 00:00:00 2001 From: Lewis Kang Date: Fri, 13 May 2016 11:18:19 +0800 Subject: [PATCH] if error -> exit 1 --- builds/amd64/installer/legacy/builds/amd64-installer.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builds/amd64/installer/legacy/builds/amd64-installer.sh b/builds/amd64/installer/legacy/builds/amd64-installer.sh index c2427083..5eac7de1 100644 --- a/builds/amd64/installer/legacy/builds/amd64-installer.sh +++ b/builds/amd64/installer/legacy/builds/amd64-installer.sh @@ -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