Update debian-v3.sh

This commit is contained in:
tteckster 2022-04-25 10:18:13 -04:00 committed by GitHub
parent 34450b0836
commit 785ca697b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 18 deletions

View File

@ -39,22 +39,12 @@ function msg_ok() {
function error_exit() {
trap - ERR
local DEFAULT="Unknown failure occured."
local REASON="${1:-$DEFAULT}"
local FLAG="${RD}‼ ERROR ${CL}$EXIT@$LINE"
echo -e "$FLAG $REASON" 1>&2
local reason="Unknown failure occured."
local msg="${1:-$reason}"
local flag="${RD}‼ ERROR ${CL}$EXIT@$LINE"
echo -e "$flag $msg" 1>&2
exit $EXIT
}
function warn() {
local REASON="$1"
local FLAG="${YW}⚠ WARNING ${CL}"
echo -e "$FLAG $REASON"
}
function info() {
local REASON="$1"
local FLAG="${BL} INFO ${CL}"
echo -e "$FLAG $REASON"
}
while true; do
read -p "This will create a New ${APP} LXC. Proceed(y/n)?" yn