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:
Linus Flood
2026-01-07 07:52:46 +00:00
parent ae06b845da
commit 8c03a8b560

View File

@@ -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}')`