Created
November 23, 2014 00:56
-
-
Save zph/f86c3942caeeaefd8eaf to your computer and use it in GitHub Desktop.
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
| #!/usr/bin/env bash | |
| set -eou pipefail | |
| readonly USERNAME="$1" | |
| if [[ $(grep "$USERNAME" whitelist.txt ) ]];then | |
| echo "Already on list" | |
| exit 2 | |
| else | |
| echo "$USERNAME" >> whitelist.txt | |
| git add whitelist.txt | |
| git commit -m "Add $USERNAME to whitelist based on Appeal Group decision" | |
| fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment