diff --git a/tools/pve/post-pve-install.sh b/tools/pve/post-pve-install.sh index bf1de735e..e2f4ba753 100644 --- a/tools/pve/post-pve-install.sh +++ b/tools/pve/post-pve-install.sh @@ -226,9 +226,8 @@ start_routines_9() { [[ -n "$list_files" ]] && MSG+="$(echo "$list_files" | sed 's|^| - |')\n" MSG+="\nDo you want to disable (comment out/rename) all legacy sources and use ONLY deb822 .sources format?\n\nRecommended for Proxmox VE 9." - whiptail --backtitle "Proxmox VE Helper Scripts" --title "Disable legacy sources?" \ - --yesno "$MSG" 18 80 - if [[ $? -eq 0 ]]; then + if whiptail --backtitle "Proxmox VE Helper Scripts" --title "Disable legacy sources?" \ + --yesno "$MSG" 18 80; then # Backup and disable sources.list if [[ -f "$listfile" ]] && grep -qE '^\s*deb ' "$listfile"; then cp "$listfile" "$listfile.bak"