瀏覽代碼

Added some comments

Mark Shust 4 年之前
父節點
當前提交
b88529e59f
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      compose/bin/start

+ 2 - 0
compose/bin/start

@@ -30,12 +30,14 @@ function parseYaml {
 VOLUME_LIST=`parseYaml docker-compose.dev.yml services_app_volumes`
 IGNORE_LIST="./src/app/code ./src/m2-hotfixes ./src/patches ./src/var/log ./src/var/report ./src"
 IS_VALID=true
+# Loop through all files missing from the docker-compose.dev.yml file
 for file in $VOLUME_LIST; do
   if [ ! -e $file ] && [[ ! " $IGNORE_LIST " =~ " $file " ]]; then
     echo "$file: No such file or directory"
     IS_VALID=false
   fi
 done
+# Wait to exit until all missing files have been outputted to the user
 [ $IS_VALID = false ] && echo "Failed to start docker for missing volume files" && exit
 
 docker-compose -f docker-compose.yml -f docker-compose.dev.yml up -d --remove-orphans