move checks to function install_script() (#1045)

This commit is contained in:
tteckster 2023-02-11 20:58:42 -05:00 committed by GitHub
parent 0ddf5e2101
commit 36ca6fa9d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
82 changed files with 164 additions and 164 deletions

View file

@ -326,6 +326,8 @@ function advanced_settings() {
fi
}
function install_script() {
ARCH_CHECK
PVE_CHECK
if (whiptail --title "SETTINGS" --yesno "Use Default Settings?" --no-button Advanced 10 58); then
header_info
echo -e "${BL}Using Default Settings${CL}"
@ -346,8 +348,6 @@ msg_ok "Updated ${APP} LXC"
msg_ok "Update Successfull"
exit
}
ARCH_CHECK
PVE_CHECK
header_info
if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
if [ "$VERB" == "yes" ]; then set -x; fi