mirror of
https://github.com/StackExchange/blackbox.git
synced 2025-12-15 19:13:01 +02:00
Remove ".sh" from file names.
Refactor so it does not rely on PWD being the repo basedir. Fix assumptions about HG and GIT use.
This commit is contained in:
17
bin/blackbox_addadmin
Executable file
17
bin/blackbox_addadmin
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/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"
|
||||
Reference in New Issue
Block a user