]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
install.sh non-root error should go to stderr
authorSteven Hardy <shardy@redhat.com>
Fri, 14 Dec 2012 09:49:31 +0000 (09:49 +0000)
committerSteven Hardy <shardy@redhat.com>
Fri, 14 Dec 2012 17:25:56 +0000 (17:25 +0000)
The non-root error should go to stderr like the other echo output

Signed-off-by: Steven Hardy <shardy@redhat.com>
Change-Id: I1d9c51c43f9a2db0b50c4c95fc0a0e4505078c51

install.sh

index f8331675e3fb14d4e38a5d5c5ea5d7877f3638ab..ef6d519f1b8cd1159bf896659d8ca1b5a4e5c237 100755 (executable)
@@ -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