diff --git a/tools/ci/compile_and_run.sh b/tools/ci/compile_and_run.sh index 6d585831ce4..0b33fd6195b 100644 --- a/tools/ci/compile_and_run.sh +++ b/tools/ci/compile_and_run.sh @@ -13,13 +13,13 @@ echo "#define ${TEST_DEFINE} 1" > ${TEST_FILE} replace=${REPLACE} # Messy map compile code -if grep -q '#include\ \"maps\\tether\\tether.dm\"' $BASENAME.dme && replace; then +if grep -q '#include[[:space:]]\"maps\\tether\\tether.dm\"' $BASENAME.dme && $replace; then sed -i 's/#include[[:space:]]\"maps\\tether\\tether.dm\"/#include\ \"maps\\${MAP}\\${MAP}.dm\"/g' $BASENAME.dme replace=false -elif grep -q '#include\ \"maps\\stellardelight\\stellardelight.dm\"' $BASENAME.dme && replace; then +elif grep -q '#include[[:space:]]\"maps\\stellardelight\\stellardelight.dm\"' $BASENAME.dme && $replace; then sed -i 's/#include[[:space:]]\"maps\\stellardelight\\stellardelight.dm\"/#include\ \"maps\\${MAP}\\${MAP}.dm\"/g' $BASENAME.dme replace=false -elif grep -q '#include\ \"maps\\groundbase\\groundbase.dm\"' $BASENAME.dme && replace; then +elif grep -q '#include[[:space:]]\"maps\\groundbase\\groundbase.dm\"' $BASENAME.dme && $replace; then sed -i 's/#include[[:space:]]\"maps\\groundbase\\groundbase.dm\"/#include\ \"maps\\${MAP}\\${MAP}.dm\"/g' $BASENAME.dme replace=false fi