Преглед на файлове

fix: use -ge instead of -gt in stop script [skip ci]

Should check if number of apps is greater or equal to 1
Nicolas Meienberger преди 2 години
родител
ревизия
10f67ab97d
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      scripts/stop.sh

+ 1 - 1
scripts/stop.sh

@@ -25,7 +25,7 @@ export COMPOSE_HTTP_TIMEOUT=240
 
 
 # Stop all installed apps if there are any
 # Stop all installed apps if there are any
 apps_folder="${ROOT_FOLDER}/apps"
 apps_folder="${ROOT_FOLDER}/apps"
-if [ "$(find ${apps_folder} -maxdepth 1 -type d | wc -l)" -gt 1 ]; then
+if [ "$(find ${apps_folder} -maxdepth 1 -type d | wc -l)" -ge 1 ]; then
   apps_names=($(ls -d ${apps_folder}/*/ | xargs -n 1 basename | sed 's/\///g'))
   apps_names=($(ls -d ${apps_folder}/*/ | xargs -n 1 basename | sed 's/\///g'))
 
 
   for app_name in "${apps_names[@]}"; do
   for app_name in "${apps_names[@]}"; do