From 94fa09d910c153f28c5d8df9ed888c69750ca39d Mon Sep 17 00:00:00 2001 From: Lukas Braun <koomi@moshbit.net> Date: Sat, 7 Oct 2017 23:18:08 +0200 Subject: [PATCH] pam tests: use whoami, $USER might not be set --- test_pam_goatherd.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test_pam_goatherd.sh b/test_pam_goatherd.sh index 0550324..04555ed 100644 --- a/test_pam_goatherd.sh +++ b/test_pam_goatherd.sh @@ -13,7 +13,7 @@ fi cleanup() { type start_pg_cleanup >/dev/null 2>/dev/null && start_pg_cleanup - pkill -u $USER goatherd + pkill -u $(whoami) goatherd } trap 'cleanup' EXIT INT -- GitLab