Skip to content

Commit 4a02986

Browse files
Fix legacy count increment syntax in post-pve-install.sh (#8070)
1 parent d062996 commit 4a02986

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/pve/post-pve-install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,15 +189,15 @@ start_routines_9() {
189189
# check if deb822 Sources (*.sources) exist
190190
if find /etc/apt/sources.list.d/ -maxdepth 1 -name '*.sources' | grep -q .; then
191191
whiptail --backtitle "Proxmox VE Helper Scripts" --title "Deb822 sources detected" \
192-
--msgbox "Modern deb822 sources (*.sources) already exist.\n\nNo changes to sources format required.\n\nYou may still have legacy sources.list or .list files, which you can disable in the next step." 12 65
192+
--msgbox "Modern deb822 sources (*.sources) already exist.\n\nNo changes to sources format required.\n\nYou may still have legacy sources.list or .list files, which you can disable in the next step." 12 65 || true
193193
else
194194
check_and_disable_legacy_sources() {
195195
local LEGACY_COUNT=0
196196
local listfile="/etc/apt/sources.list"
197197

198198
# Check sources.list
199199
if [[ -f "$listfile" ]] && grep -qE '^\s*deb ' "$listfile"; then
200-
((LEGACY_COUNT++))
200+
(( ++LEGACY_COUNT ))
201201
fi
202202

203203
# Check .list files

0 commit comments

Comments
 (0)