Skip to content

Commit

Permalink
fix: properly warn users not to use "=" character in pre or post depl…
Browse files Browse the repository at this point in the history
…oy commands (#6503)

Co-authored-by: joehan <[email protected]>
  • Loading branch information
russellwheatley and joehan authored Nov 29, 2023
1 parent dbedf74 commit 8784f9f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/deploy/lifecycleHooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ function runCommand(command: string, childOptions: childProcess.SpawnOptions) {

return new Promise<void>((resolve, reject) => {
logger.info("Running command: " + command);
if (command.includes("=")) {
utils.logWarning(
clc.yellow(clc.bold("Warning: ")) +
"Your command contains '=', it may result in the command not running." +
" Please consider removing it."
);
}
if (translatedCommand === "") {
return resolve();
}
Expand Down

0 comments on commit 8784f9f

Please sign in to comment.