浏览代码

Merge pull request #727 from h3xx/fix-regex

Mark Shust 2 年之前
父节点
当前提交
a134bb8a87
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      compose/bin/start

+ 1 - 1
compose/bin/start

@@ -48,7 +48,7 @@ IS_VALID=true
 
 
 # Loop through all files missing from the compose.dev.yaml file
 # Loop through all files missing from the compose.dev.yaml file
 for file in $VOLUME_LIST; do
 for file in $VOLUME_LIST; do
-  if [ ! -e "$file" ] && [[ ! " $IGNORE_LIST " =~ $file ]]; then
+  if [[ ! -e $file && " $IGNORE_LIST " != *" $file "* ]]; then
     echo "$file: No such file or directory"
     echo "$file: No such file or directory"
     IS_VALID=false
     IS_VALID=false
   fi
   fi