From 2a2dd14c9a4dd6622f8196193451e360d1978255 Mon Sep 17 00:00:00 2001 From: tteckster Date: Tue, 30 Jan 2024 13:46:33 -0500 Subject: [PATCH] Update pimox-haos-vm.sh check for whiptail --- vm/pimox-haos-vm.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vm/pimox-haos-vm.sh b/vm/pimox-haos-vm.sh index 1347fcf6..f16a6338 100644 --- a/vm/pimox-haos-vm.sh +++ b/vm/pimox-haos-vm.sh @@ -71,6 +71,11 @@ function cleanup() { } TEMP_DIR=$(mktemp -d) pushd $TEMP_DIR >/dev/null +if ! command -v whiptail &> /dev/null; then + echo "Installing whiptail..." + apt-get update &>/dev/null + apt-get install -y whiptail &>/dev/null +fi if (whiptail --backtitle "Proxmox VE Helper Scripts" --title "PiMox HAOS VM" --yesno "This will create a New PiMox HAOS VM. Proceed?" 10 58); then echo "User selected Yes" else