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:
parent
a33d15751b
commit
b77b9432c4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user