瀏覽代碼

Fix user string interpreted as regex

Dan Church 2 年之前
父節點
當前提交
18fade08fb
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      compose/bin/start

+ 1 - 1
compose/bin/start

@@ -43,7 +43,7 @@ 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
+  if [[ ! -e $file && " $IGNORE_LIST " != *" $file "* ]]; then
     echo "$file: No such file or directory"
     IS_VALID=false
   fi