Skip to content
This repository has been archived by the owner on Feb 19, 2024. It is now read-only.

Commit

Permalink
chore(flatpak-manager): Only remove flatpaks a single time (ublue-os#734
Browse files Browse the repository at this point in the history
)
  • Loading branch information
EyeCantCU authored Dec 16, 2023
1 parent 846af93 commit 3a03fe6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions usr/bin/ublue-system-flatpak-manager
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ if [[ -f $INSTALL_LIST_FILE ]]; then
fi
fi

# Remove flatpaks in list
if [[ -f $REMOVE_LIST_FILE ]]; then
# Remove flatpaks in list once
if [[ ! -f $VER_FILE && -f $REMOVE_LIST_FILE ]]; then
REMOVE_LIST=$(echo $FLATPAK_LIST | grep -f - $REMOVE_LIST_FILE)
if [[ -n $REMOVE_LIST ]]; then
flatpak remove --system --noninteractive ${REMOVE_LIST[@]}
Expand Down
4 changes: 2 additions & 2 deletions usr/bin/ublue-user-flatpak-manager
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ if [[ -f $INSTALL_LIST_FILE ]]; then
fi
fi

# Remove flatpaks in list
if [[ -f $REMOVE_LIST_FILE ]]; then
# Remove flatpaks in list once
if [[ ! -f $VER_FILE && -f $REMOVE_LIST_FILE ]]; then
REMOVE_LIST=$(echo $FLATPAK_LIST | grep -f - $REMOVE_LIST_FILE)
if [[ -n $REMOVE_LIST ]]; then
flatpak remove --user --noninteractive ${REMOVE_LIST[@]}
Expand Down

0 comments on commit 3a03fe6

Please sign in to comment.