Update build.func

This commit is contained in:
tteckster 2024-02-21 18:47:57 -05:00 committed by GitHub
parent 038f70f198
commit f3e3958299
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 11 deletions

View File

@ -82,16 +82,6 @@ check_root() {
fi fi
} }
# Check if the shell is using bash
shell_check() {
if [[ "$(basename "$SHELL")" != "bash" ]]; then
msg_error "Your current shell is not Bash. To utilize these scripts, please switch to the Bash shell.
echo -e "\nExiting..."
sleep 2
exit
fi
}
# This function checks the version of Proxmox Virtual Environment (PVE) and exits if the version is not supported. # This function checks the version of Proxmox Virtual Environment (PVE) and exits if the version is not supported.
pve_check() { pve_check() {
if [ $(pveversion | grep "pve-manager/8" | wc -l) -ne 1 ]; then if [ $(pveversion | grep "pve-manager/8" | wc -l) -ne 1 ]; then
@ -460,7 +450,6 @@ advanced_settings() {
} }
install_script() { install_script() {
shell_check
check_root check_root
ssh_check ssh_check
arch_check arch_check