mirror of
https://github.com/Nezumi-2711/cloudflare-gateway-pihole-scripts.git
synced 2026-09-22 05:31:50 +00:00
Wrap rule name in quotes when deleting
This commit is contained in:
@@ -6,7 +6,7 @@ import { deleteZeroTrustRule, getZeroTrustRules } from './lib/api.js';
|
||||
|
||||
if (!filtered_rule) return console.warn("No rule with matching name found - this is not an issue if you haven't run the create script yet. Exiting.");
|
||||
|
||||
console.log(`Deleting rule`, process.env.CI ? "(redacted, running in CI)" : `${filtered_rule.name} with ID ${filtered_rule.id}`);
|
||||
console.log(`Deleting rule`, process.env.CI ? "(redacted, running in CI)" : `"${filtered_rule.name}" with ID ${filtered_rule.id}`);
|
||||
|
||||
await deleteZeroTrustRule(filtered_rule.id);
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user