1
0
mirror of https://github.com/osmarks/ngircd.git synced 2024-10-27 20:36:18 +00:00

Test suite: Correctly test for LOGNAME and USER

This commit is contained in:
Alexander Barton 2024-04-13 16:04:29 +02:00
parent a33d15751b
commit b77b9432c4

View File

@ -23,7 +23,7 @@ if [ -x /usr/bin/pgrep ]; then
*)
PGREP_FLAGS=""
esac
if [ -n "$LOGNAME" ] || [ -n "$USER" ]; then
if [ -n "${LOGNAME:-}" ] || [ -n "${USER:-}" ]; then
# Try to narrow the search down to the current user ...
exec /usr/bin/pgrep $PGREP_FLAGS -n -u "${LOGNAME:-$USER}" "$1"
else