瀏覽代碼

Add check for .arm file

Nicolas Meienberger 3 年之前
父節點
當前提交
83c2a1876b
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      scripts/app.sh

+ 3 - 3
scripts/app.sh

@@ -89,10 +89,10 @@ compose() {
   local env_file="${ROOT_FOLDER}/.env"
   local app_compose_file="${app_dir}/docker-compose.yml"
 
-  # Pick arm architecture if running on arm
-  if [[ "$architecture" == "arm"* ]]; then
+  # Pick arm architecture if running on arm and if the app has a docker-compose.arm.yml file
+  if [[ "$architecture" == "arm"* ]] && [[ -f "${app_dir}/docker-compose.arm.yml" ]]; then
     app_compose_file="${app_dir}/docker-compose.arm.yml"
-  fi
+  fi  
 
   local common_compose_file="${ROOT_FOLDER}/apps/docker-compose.common.yml"
   local app_dir="${ROOT_FOLDER}/apps/${app}"