diff --git a/.github/workflows/delete-pocketbase-entry-on-removal.yml b/.github/workflows/delete-pocketbase-entry-on-removal.yml index 03056dc1e..2cf7b46b8 100644 --- a/.github/workflows/delete-pocketbase-entry-on-removal.yml +++ b/.github/workflows/delete-pocketbase-entry-on-removal.yml @@ -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); }