Merged in fix/deploy-script (pull request #3389)
chore(deploy): fixed trim in deploy script * chore(deploy): fixed trim in deploy script Approved-by: Joakim Jäderberg
This commit is contained in:
@@ -36,13 +36,13 @@ const runGit = (
|
||||
command: string,
|
||||
options: { stdio?: "inherit" | "ignore" | "pipe" } = {}
|
||||
) => {
|
||||
return execSync(command, { encoding: "utf-8", ...options }).trim();
|
||||
return execSync(command, { encoding: "utf-8", ...options });
|
||||
};
|
||||
|
||||
async function main() {
|
||||
try {
|
||||
// Get current branch
|
||||
const currentBranch = runGit("git rev-parse --abbrev-ref HEAD");
|
||||
const currentBranch = runGit("git rev-parse --abbrev-ref HEAD").trim();
|
||||
|
||||
console.log(
|
||||
`\n🚀 Preparing to deploy branch '${currentBranch}' to '${targetEnv}' (target branch: '${targetBranch}')`
|
||||
|
||||
Reference in New Issue
Block a user