From a9278c203c978a65a7b07f1df0aec61260627387 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Mon, 14 Sep 2015 11:47:35 +0200 Subject: Fix quote $user. --- localnotifypwexp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'localnotifypwexp') diff --git a/localnotifypwexp b/localnotifypwexp index a485b12..dc8a096 100755 --- a/localnotifypwexp +++ b/localnotifypwexp @@ -103,7 +103,7 @@ for user in $users; do IFS=":" - usershadow=$(getent shadow $user) + usershadow=$(getent shadow "$user") # make an array out of it usershadow=($usershadow) @@ -127,7 +127,7 @@ do then subject=$(eval "echo \"$usersubjecttemplate\"") body=$(eval "echo \"$userbodytemplate\"") - echo -e "$body" | $notifyprog -s "$subject" $user + echo -e "$body" | $notifyprog -s "$subject" "$user" else if [[ $age -ge $aged ]]; then -- cgit v1.2.3