Updated to use remove_line
I didn't notice this earlier
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user