mirror of
https://github.com/Telecominfraproject/OpenNetworkLinux.git
synced 2025-12-25 17:27:01 +00:00
if error -> exit 1
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user