typo in sed

This commit is contained in:
James Tomasino 2018-12-17 17:36:21 -05:00
parent 03b3e84df5
commit e5042f8496
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ run_user=$(id -u)
if [ "$run_user" -eq 0 ] || [ "$run_user" -eq 1000 ]; then
if [ -f "$1" ]; then
for u in $(members users); do
sed -e "/username/${u}/g" "$1" | sendmail "$u"
sed -e "s/username/${u}/g" "$1" | sendmail "$u"
done
else
printf "Filename of email required.\\n"