Kaynağa Gözat

Fix user string interpreted as regex

Dan Church 2 yıl önce
ebeveyn
işleme
18fade08fb
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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