Skip to content

Commit

Permalink
fix: handle removal of multiple branches of same runtime (#588)
Browse files Browse the repository at this point in the history
  • Loading branch information
bobslept committed Oct 13, 2023
1 parent cb9dd05 commit de245f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion usr/bin/ublue-system-flatpak-manager
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ if grep -qz 'fedora' <<< $(flatpak remotes); then
done

# Remove flatpak runtimes from origin fedora
FEDORA_FLATPAKS=$(flatpak list --runtime --columns=application,origin | grep -w 'fedora' | awk '{print $1}')
FEDORA_FLATPAKS=$(flatpak list --runtime --columns=application,arch,branch,origin | grep -w 'fedora' | awk '{print $1"/"$2"/"$3}')
for flatpak in $FEDORA_FLATPAKS; do
flatpak remove --system --noninteractive $flatpak
done
Expand Down

0 comments on commit de245f7

Please sign in to comment.