Skip to content

Commit

Permalink
Update flattool
Browse files Browse the repository at this point in the history
Add "<number> Flatpaks left to go" as a printed message for install, uninstall, and orphans commands
Bump to version 1.3.0
  • Loading branch information
heliguy4599 authored Jul 5, 2023
1 parent 4ee593f commit fa863e4
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions flattool
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
# SPDX-License-Identifier: GPL-3.0-only

# Settings and stuff, 'as' stands for App Setting. LastUpdateCheck must be 10 digits
asFirstRun="false"
asFirstRun="true"
asLastUpdateCheck="0000000000"
asAutoCheckUpdate="false"

# Global variables
versionNumber="1.2.0"
versionNumber="1.3.0"
owner="heliguy4599"
repo="flattool"
appID=''
Expand Down Expand Up @@ -214,6 +214,9 @@ installApp() {
while [ $# -gt 0 ]; do
flatpak install "$1"
echo
if [ $# -gt 0 ]; then
echo "${boldTxt}$(($# - 1)) Flatpaks to go${normalTxt}"
fi
shift
done
}
Expand All @@ -223,6 +226,9 @@ removeApp() {
while [ $# -gt 0 ]; do
flatpak remove "$1"
echo
if [ $# -gt 0 ]; then
echo "${boldTxt}$(($# - 1)) Flatpaks to go${normalTxt}"
fi
shift
done
}
Expand Down Expand Up @@ -285,7 +291,10 @@ fixOrphans() {
done
;;
3)
numberOfRound=$totalOfOrphans
for element in "${orphanedAppsList[@]}"; do
numberOfRound=$(($numberOfRound - 1))
echo -e "${boldTxt}${numberOfRound} Flatpaks to go${normalTxt}\n"
echo "For folder '${element}', choose an option"
echo -n "[T]rash, [I]install, or [S]kip: "
while true; do
Expand Down

0 comments on commit fa863e4

Please sign in to comment.