Skip to content

Commit 8784f9f

Browse files
fix: properly warn users not to use "=" character in pre or post deploy commands (#6503)
Co-authored-by: joehan <[email protected]>
1 parent dbedf74 commit 8784f9f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/deploy/lifecycleHooks.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@ function runCommand(command: string, childOptions: childProcess.SpawnOptions) {
1919

2020
return new Promise<void>((resolve, reject) => {
2121
logger.info("Running command: " + command);
22+
if (command.includes("=")) {
23+
utils.logWarning(
24+
clc.yellow(clc.bold("Warning: ")) +
25+
"Your command contains '=', it may result in the command not running." +
26+
" Please consider removing it."
27+
);
28+
}
2229
if (translatedCommand === "") {
2330
return resolve();
2431
}

0 commit comments

Comments
 (0)