This file contains hidden or 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
| #!/bin/bash | |
| # Lazy script I use to validate and deploy systemd services. | |
| # Exit immediately if a command exits with a non-zero status | |
| set -e | |
| # Function to print status messages | |
| log_info() { | |
| echo -e "\033[0;32m[INFO]\033[0m $1" | |
| } |
This file contains hidden or 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
| #!/bin/bash | |
| # Removes old git branches with no commits in >= 6 months. | |
| # Instructions | |
| # 1. Copy to directory of git repo | |
| # 2. Run once to see list of branches | |
| # 3. Once confident, export $DRY_RUN = false and run again to delete them locally and remotely. | |
| exempt_branches=("example-branch-name" "example-branch-name-2") | |
| ECHO='echo ' |