Files
blackbox/bin/blackbox_addadmin
tlimoncelli@stackexchange.com f387bc9f30 Remove ".sh" from file names.
Refactor so it does not rely on PWD being the repo basedir.
Fix assumptions about HG and GIT use.
2014-08-28 20:47:32 +00:00

18 lines
349 B
Bash
Executable File

#!/usr/bin/env bash
#
# blackbox_addadmin -- Add an admin to the system
#
#
# Example:
# blackbox_addadmin tal@example.com
#
. _blackbox_common.sh
# Add the email address to the BB_ADMINS file. Remove any duplicates.
# The file must exist for sort to act as we expect.
touch "$BB_ADMINS"
sort -fdu -o "$BB_ADMINS" <(echo "$1") "$BB_ADMINS"