fix (workflow): YAML syntax error in pocketbase stub generation (#15174)

* fix (workflow): YAML syntax error in pocketbase stub generation

* fix: remove leftover semicolon row, add string literals
This commit is contained in:
Trollfjorden
2026-06-19 06:42:12 +00:00
committed by GitHub
parent 515122227a
commit 5dfabfbb92
+17 -17
View File
@@ -265,23 +265,23 @@ jobs:
: 'This script was removed and cannot be installed or updated.';
const stubPath = path.join('ct', slug + '.sh');
const content =
`#!/usr/bin/env bash
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
# Copyright (c) 2021-2026 community-scripts ORG
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
APP="${appName.replace(/"/g, '\\"')}"
header_info "$APP"
variables
color
msg_error "This script is no longer available in community-scripts."
msg_error "${deletedMessage.replace(/"/g, '\\"')}"
msg_warn "More info: https://community-scripts.org/scripts/${slug}"
exit 1
`;
const content = [
"#!/usr/bin/env bash",
"source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)",
"# Copyright (c) 2021-2026 community-scripts ORG",
"# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE",
"",
`APP="${appName.replace(/"/g, '\\"')}"`,
"",
'header_info "$APP"',
'variables',
'color',
"",
'msg_error "This script is no longer available in community-scripts."',
`msg_error "${deletedMessage.replace(/"/g, '\\"')}"`,
`msg_warn "More info: https://community-scripts.org/scripts/${slug}"`,
"exit 1"
].join('\n') + '\n';
fs.writeFileSync(stubPath, content);
console.log('Generated stub: ' + stubPath);
}