Merge pull request #47 from SuperSandro2000/patch-1

Changed pi user log in to exact match
This commit is contained in:
Alexandre Aubin 2018-04-06 15:07:52 +02:00 committed by GitHub
commit b8f80b32e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -461,7 +461,7 @@ function is_raspbian() {
}
function user_pi_logged_out() {
who | grep pi > /dev/null && return 1
who | grep -w pi > /dev/null && return 1
return 0
}