From 049d9ed19108a247eeadc1587d3da640fe107426 Mon Sep 17 00:00:00 2001 From: "allcontributors[bot]" <46447321+allcontributors[bot]@users.noreply.github.com> Date: Wed, 21 Sep 2022 06:48:29 +0000 Subject: [PATCH] update .all-contributorsrc [skip ci] revert(stop.sh): use gt instead of ge [skip ci] @dexrtreem: It should be -gt. That find command will always return the base path (app) as well, i.e., wc -l returns 1 or more. Using -ge would break this part again :-) --- .all-contributorsrc | 9 +++++++++ scripts/stop.sh | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.all-contributorsrc b/.all-contributorsrc index 72bee584..79368a21 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -119,6 +119,15 @@ "contributions": [ "code" ] + }, + { + "login": "dextreem", + "name": "dextreem", + "avatar_url": "https://avatars.githubusercontent.com/u/11060652?v=4", + "profile": "https://github.com/dextreem", + "contributions": [ + "code" + ] } ], "contributorsPerLine": 7, diff --git a/scripts/stop.sh b/scripts/stop.sh index bc7b108b..486f64ad 100755 --- a/scripts/stop.sh +++ b/scripts/stop.sh @@ -25,7 +25,7 @@ export COMPOSE_HTTP_TIMEOUT=240 # Stop all installed apps if there are any apps_folder="${ROOT_FOLDER}/apps" -if [ "$(find ${apps_folder} -maxdepth 1 -type d | wc -l)" -ge 1 ]; then +if [ "$(find ${apps_folder} -maxdepth 1 -type d | wc -l)" -gt 1 ]; then apps_names=($(ls -d ${apps_folder}/*/ | xargs -n 1 basename | sed 's/\///g')) for app_name in "${apps_names[@]}"; do