Skip to content

Commit

Permalink
v8.23
Browse files Browse the repository at this point in the history
- DietPi-Software | Correctly unmark pending state software IDs after the software list was created, so that unmarking software titles from the list works
  • Loading branch information
MichaIng committed Oct 12, 2023
1 parent 60934c6 commit 5745845
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dietpi/dietpi-software
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 5745845

Please sign in to comment.