Refactor so it does not rely on PWD being the repo basedir. Fix assumptions about HG and GIT use.
18 lines
349 B
Bash
Executable File
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"
|