summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authordteske <dteske@FreeBSD.org>2013-12-18 21:13:50 +0000
committerdteske <dteske@FreeBSD.org>2013-12-18 21:13:50 +0000
commit2918b19aa337e5b52c29de1340d89aa443a84225 (patch)
treeb002dd3e0ec98bc2fd5e7dc0b9d83431485bcf39 /usr.sbin
parent2067ea331b74a2cf174a721e8a608a7592c8b983 (diff)
downloadFreeBSD-src-2918b19aa337e5b52c29de1340d89aa443a84225.zip
FreeBSD-src-2918b19aa337e5b52c29de1340d89aa443a84225.tar.gz
Fix "[: -eq: argument expected" error introduced by SVN r256343. The code
should not have used DIALOG_CANCEL because dialog.subr wasn't included to define it. The effect of the error was that you could not cancel the partition dialog. Discovered by checking bsdinstall_log for something else. MFC after: 3 days
Diffstat (limited to 'usr.sbin')
-rwxr-xr-xusr.sbin/bsdinstall/scripts/auto3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.sbin/bsdinstall/scripts/auto b/usr.sbin/bsdinstall/scripts/auto
index 34a6918..0e003f4 100755
--- a/usr.sbin/bsdinstall/scripts/auto
+++ b/usr.sbin/bsdinstall/scripts/auto
@@ -124,8 +124,7 @@ exec 3>&1
PARTMODE=`echo $PMODES | xargs dialog --backtitle "FreeBSD Installer" \
--title "Partitioning" \
--menu "How would you like to partition your disk?" \
- 0 0 0 2>&1 1>&3`
-if [ $? -eq $DIALOG_CANCEL ]; then exit 1; fi
+ 0 0 0 2>&1 1>&3` || exit 1
exec 3>&-
case "$PARTMODE" in
OpenPOWER on IntegriCloud