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:
tlimoncelli@stackexchange.com
2014-08-28 20:47:32 +00:00
parent c903bdc575
commit f387bc9f30
12 changed files with 113 additions and 95 deletions

17
bin/blackbox_addadmin Executable file
View 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"