From: Steven Hardy Date: Fri, 14 Dec 2012 09:49:31 +0000 (+0000) Subject: install.sh non-root error should go to stderr X-Git-Tag: 2014.1~1075 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=32855ed499d4dba05282ec3b93088eb88dc61805;p=openstack-build%2Fheat-build.git install.sh non-root error should go to stderr The non-root error should go to stderr like the other echo output Signed-off-by: Steven Hardy Change-Id: I1d9c51c43f9a2db0b50c4c95fc0a0e4505078c51 --- diff --git a/install.sh b/install.sh index f8331675..ef6d519f 100755 --- a/install.sh +++ b/install.sh @@ -1,7 +1,7 @@ #!/bin/bash if [[ $EUID -ne 0 ]]; then - echo "This script must be run as root" + echo "This script must be run as root" >&2 exit 1 fi