Updated to use remove_line

I didn't notice this earlier
This commit is contained in:
Tyler Akins
2015-06-15 12:22:39 -05:00
parent 83249517a5
commit 6e04e42f4a

View File

@@ -20,9 +20,7 @@ KEYNAME="$1"
: "${KEYNAME:?ERROR: First argument must be a keyname (email address)}" ; : "${KEYNAME:?ERROR: First argument must be a keyname (email address)}" ;
# Remove the email address from the BB_ADMINS file. # Remove the email address from the BB_ADMINS file.
make_self_deleting_tempfile bbtemp remove_line "$BB_ADMINS" "$KEYNAME"
cp "$BB_ADMINS" "$bbtemp"
fgrep -v -x "$KEYNAME" <"$bbtemp" >"$BB_ADMINS"
# Make a suggestion: # Make a suggestion:
echo echo