From 29cd63746d131b4b44331e6a3de8cc1eae184be1 Mon Sep 17 00:00:00 2001 From: ItsSelis Date: Sun, 3 Jul 2022 21:06:00 +0200 Subject: [PATCH] bash bash --- tools/ci/compile_and_run.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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