diff --git a/templates/real-from-dwd-ana/prepare_date_local.sh b/templates/real-from-dwd-ana/prepare_date_local.sh
index be2c990b3bc1e53f010ab2d01b6eeb18c37da23d..0f579e810d440f76cdfc54973254b6fa6f8f82ef 100644
--- a/templates/real-from-dwd-ana/prepare_date_local.sh
+++ b/templates/real-from-dwd-ana/prepare_date_local.sh
@@ -7,7 +7,7 @@
 # system we need to define these two variables:
 DATA_IS_LOCAL=%SIMULATION.INITIAL_CONDITIONS.LOCAL%
 
-if [ "x%HPCARCH%" == "xlocal"]; then
+if [ "x%HPCARCH%" == "xlocal" ]; then
   RUN_MACHINE_IS_LOCAL="True"
 else
   RUN_MACHINE_IS_LOCAL="False"