diff options
author | Bryan Drewery <bryan@shatow.net> | 2019-09-18 02:29:13 +0300 |
---|---|---|
committer | Bryan Drewery <bryan@shatow.net> | 2019-09-18 02:46:20 +0300 |
commit | f122935a81b48e7e926dee883e4dd436e861154a (patch) | |
tree | 586dc2240cd292e7bd9180703af39ce33ebced4c /src | |
parent | 2a20e6cf649ef2415b4351203c26709df16261ed (diff) |
jail -d: Don't confirm if the jail doesn't exist
Diffstat (limited to 'src')
-rwxr-xr-x | src/share/poudriere/jail.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/share/poudriere/jail.sh b/src/share/poudriere/jail.sh index 24d5eaac..390f9c29 100755 --- a/src/share/poudriere/jail.sh +++ b/src/share/poudriere/jail.sh @@ -1230,6 +1230,7 @@ case "${CREATE}${INFO}${LIST}${STOP}${START}${DELETE}${UPDATE}${RENAME}" in ;; 00000100) [ -z "${JAILNAME}" ] && usage JAILNAME + jail_exists ${JAILNAME} || err 1 "No such jail: ${JAILNAME}" confirm_if_tty "Are you sure you want to delete the jail?" || \ err 1 "Not deleting jail" maybe_run_queued "${saved_argv}" |