From 92b42c3a98b10823c1e4fa703d63a84a02da04a5 Mon Sep 17 00:00:00 2001 From: Roy <88516395+moraroy@users.noreply.github.com> Date: Thu, 14 Mar 2024 10:57:29 -0700 Subject: [PATCH] removed breaks --- NonSteamLaunchers.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/NonSteamLaunchers.sh b/NonSteamLaunchers.sh index b73a7c9..9872e87 100755 --- a/NonSteamLaunchers.sh +++ b/NonSteamLaunchers.sh @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +⁸#!/usr/bin/env bash set -x # activate debugging (execution shown) set -o pipefail # capture error from pipes @@ -54,16 +54,16 @@ check_for_updates() { args=("$@") deckyplugin=false installchrome=false + for arg in "${args[@]}"; do - if [ "$arg" = "DeckyPlugin" ]; then - deckyplugin=true - break - if [ "$arg" = "Chrome" ]; then - installchrome=true - break - fi + if [ "$arg" = "DeckyPlugin" ]; then + deckyplugin=true + elif [ "$arg" = "Chrome" ]; then + installchrome=true + fi done + if [ "${deckyplugin}" = false ]; then #Download Modules # Define the repository and the folders to clone