-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: address shellcheck warnings and improve script robustness
This commit addresses issues flagged by shellcheck and enhances the robustness of the `cloudflare-ufw-updater.sh` script: - Fixed SC2155 by separating variable declaration and assignment for `ufw_version` to prevent masking return values. - Suppressed SC1091 by adding an explicit shellcheck directive for sourcing the configuration file. - Improved comments for clarity and documentation. - Enhanced error handling and dependency checks to ensure script reliability. - Maintained compatibility with shellcheck by adding the `-x` flag for testing sourced files.
- Loading branch information
1 parent
a22db81
commit d5e8063
Showing
1 changed file
with
20 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters