diff --git a/src/task/setono_dotenv.php b/src/task/setono_dotenv.php index 7e6b694..0e39e09 100644 --- a/src/task/setono_dotenv.php +++ b/src/task/setono_dotenv.php @@ -148,7 +148,7 @@ * This will generate a $command variable that will save a multiline text into a file * See https://stackoverflow.com/questions/10969953/how-to-output-a-multiline-string-in-bash */ - $command = "cat < {{release_path}}/.env.{{stage}}.local\n"; + $command = "cat <<'EOT' > {{release_path}}/.env.{{stage}}.local\n"; foreach ($overriddenValues as $key => $val) { $command .= $key . '=' . $val . "\n"; }