Преглед изворни кода

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
 # Loop through all files missing from the docker-compose.dev.yml 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