Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/bsdinstall/scripts/jail
| Show All 39 Lines | |||||
| # | # | ||||
| user_env_vars="BSDINSTALL_DISTSITE DISTRIBUTIONS" | user_env_vars="BSDINSTALL_DISTSITE DISTRIBUTIONS" | ||||
| ############################################################ FUNCTIONS | ############################################################ FUNCTIONS | ||||
| # error [$msg] | # error [$msg] | ||||
| # | # | ||||
| # Display generic error message when a script fails. An optional message | # Display generic error message when a script fails. An optional message | ||||
| # argument can preceed the generic message. User is given the choice of | # argument can precede the generic message. User is given the choice of | ||||
| # restarting the installer or exiting. | # restarting the installer or exiting. | ||||
| # | # | ||||
| error() { | error() { | ||||
| local msg | local msg | ||||
| if [ -n "$1" ]; then | if [ -n "$1" ]; then | ||||
| msg="$1\n\n" | msg="$1\n\n" | ||||
| fi | fi | ||||
| bsddialog --backtitle "$OSNAME Installer" --title "Abort" \ | bsddialog --backtitle "$OSNAME Installer" --title "Abort" \ | ||||
| ▲ Show 20 Lines • Show All 175 Lines • Show Last 20 Lines | |||||