mirror of
https://git.coolaj86.com/coolaj86/telebit.js.git
synced 2025-04-21 19:40:37 +00:00
fix null pipe
This commit is contained in:
parent
aaa11c4c87
commit
214096e216
@ -34,7 +34,7 @@ set -u
|
|||||||
TELEBIT_DEBUG=${TELEBIT_DEBUG:-}
|
TELEBIT_DEBUG=${TELEBIT_DEBUG:-}
|
||||||
|
|
||||||
# NOTE: On OS X logname works from a pipe, but on Linux it does not
|
# NOTE: On OS X logname works from a pipe, but on Linux it does not
|
||||||
if [ -n "$(logname >2/dev/null | grep '.')" ] && [ "$(logname)" != "$(id -u -n)" ]; then
|
if [ -n "$(logname 2>/dev/null | grep '.')" ] && [ "$(logname)" != "$(id -u -n)" ]; then
|
||||||
echo "WARNING:"
|
echo "WARNING:"
|
||||||
echo " You are logged in as '$(logname)' but acting as '$(id -u -n)'."
|
echo " You are logged in as '$(logname)' but acting as '$(id -u -n)'."
|
||||||
echo " If the installation is not successful please log in as '$(id -u -n)' directly."
|
echo " If the installation is not successful please log in as '$(id -u -n)' directly."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user