diff --git a/dietpi/dietpi-software b/dietpi/dietpi-software index ef9aa1d04a..6f23197e75 100755 --- a/dietpi/dietpi-software +++ b/dietpi/dietpi-software @@ -15177,7 +15177,7 @@ _EOF_ G_WHIP_CHECKLIST_ARRAY+=("$j" "${aSOFTWARE_NAME[$j]}: ${aSOFTWARE_DESC[$j]}" "$selected") # Add previously selected items to array to be unmarked if deselected when selection is confirmed. - (( ${aSOFTWARE_INSTALL_STATE[$j]} == 1 )) && reset+=("$i") + (( ${aSOFTWARE_INSTALL_STATE[$j]} == 1 )) && reset+=("$j") done done fi @@ -15189,7 +15189,7 @@ _EOF_ - Software and usage details: https://dietpi.com/docs/software/' || return 0 # Unmark all listed pending state items, so deselected items are not installed. - for i in "${!reset[@]}" + for i in "${reset[@]}" do aSOFTWARE_INSTALL_STATE[$i]=0 done