This can be fixed by changing line 23 to the following: `currentUser=$(who | awk '/console/{print $1}' | grep -v _mbsetupuser)`