diff --git a/packages/manager/.changeset/pr-9791-fixed-1697461463011.md b/packages/manager/.changeset/pr-9791-fixed-1697461463011.md new file mode 100644 index 00000000000..122a7e561c4 --- /dev/null +++ b/packages/manager/.changeset/pr-9791-fixed-1697461463011.md @@ -0,0 +1,5 @@ +--- +"@linode/manager": Fixed +--- + +Quote variable in changeset shell command ([#9791](https://github.com/linode/manager/pull/9791)) diff --git a/scripts/changelog/changeset.mjs b/scripts/changelog/changeset.mjs index 9dd86e401f4..767e3d8a713 100644 --- a/scripts/changelog/changeset.mjs +++ b/scripts/changelog/changeset.mjs @@ -100,7 +100,7 @@ async function generateChangeset() { } try { - const addCmd = `git add ${changesetFile}`; + const addCmd = `git add "${changesetFile}"`; // This allows backticks in the commit message. We first need to sanitize against any number of backslashes // that appear before backtick in description, to avoid having unescaped characters. Then we can add back // two backslashes before the backtick to make sure backticks show up in the commit message.