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 | |
| COMMIT_MSG_FILE=$1 | |
| BRANCH_NAME=$(git symbolic-ref --short HEAD 2>/dev/null) | |
| TICKET_REGEX="^[^A-Z]*([A-Z]{2,}-[0-9]+).*" | |
| if [[ $BRANCH_NAME =~ $TICKET_REGEX ]]; then | |
| TICKET_NUMBER=${BASH_REMATCH[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 | |
| # | |
| # OneDrive Downloader: A tool to download files from OneDrive links via the terminal. | |
| # | |
| # This script retrieves a "badger" token and prepares the target file for download. | |
| # | |
| # Commands used: | |
| # - curl | |
| # - grep | |
| # - base64 |