🚨 (flatpak-sync) Ignore two irrelevant shellcheck warnings
This commit is contained in:
parent
0a66eb9fb6
commit
921aa2e033
1 changed files with 2 additions and 0 deletions
|
@ -21,6 +21,7 @@ function sync() {
|
|||
continue
|
||||
fi
|
||||
requested_apps_cleaned+=("$app")
|
||||
# shellcheck disable=SC2076
|
||||
if [[ ! "${installed_apps[*]}" =~ "${app}" ]]; then
|
||||
echo "$app not installed. Installing it."
|
||||
flatpak install -y "$app"
|
||||
|
@ -29,6 +30,7 @@ function sync() {
|
|||
|
||||
echo "Checking for apps to remove."
|
||||
for app in "${installed_apps[@]}"; do
|
||||
# shellcheck disable=SC2076
|
||||
if [[ ! "${requested_apps_cleaned[*]}" =~ "${app}" ]]; then
|
||||
echo "$app no found in apps list. Removing it.";
|
||||
flatpak uninstall -y "$app"
|
||||
|
|
Loading…
Reference in a new issue