aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsrc/logging2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/logging b/src/logging
index 8e8e14b..c1ca78e 100755
--- a/src/logging
+++ b/src/logging
@@ -84,7 +84,7 @@ log_login ()
# you add a script named .prelogin in your home directory that
# contains the following code, to print the last login information:
# echo 'Last login:' ; lastlog --user $USER | tail -n 1
- script="$(getent passwd | grep '^${user}:' | cut -d : -f 6)/.prelogin"
+ script="$(getent passwd | grep "^${user}:" | cut -d : -f 6)/.prelogin"
if [ -x "${script}" ]; then
su -c "${script}" -- "${user}"
fi