Just hide whiptail cancel message on test installs

This commit is contained in:
William Wernert
2021-11-03 09:19:41 -04:00
parent d927e79154
commit fb35ff40b4

View File

@@ -83,10 +83,8 @@ whiptail_bond_nics_mtu() {
} }
whiptail_cancel() { whiptail_cancel() {
[ -z "$TESTING" ] && whiptail --title "$whiptail_title" --msgbox "Cancelling Setup." 8 75
[ -n "$TESTING" ] && exit 1
whiptail --title "$whiptail_title" --msgbox "Cancelling Setup." 8 75
if [ -d "/root/installtmp" ]; then if [ -d "/root/installtmp" ]; then
{ {
echo "/root/installtmp exists"; echo "/root/installtmp exists";