From 214096e216476c6836a19defd4b60b83ba6272c4 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Thu, 26 Jul 2018 16:40:06 -0600 Subject: [PATCH] fix null pipe --- usr/share/install_helper.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/share/install_helper.sh b/usr/share/install_helper.sh index 6dc1e6e..dc30b7a 100644 --- a/usr/share/install_helper.sh +++ b/usr/share/install_helper.sh @@ -34,7 +34,7 @@ set -u TELEBIT_DEBUG=${TELEBIT_DEBUG:-} # 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 " 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."