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 <shardy@redhat.com>
Change-Id: I1d9c51c43f9a2db0b50c4c95fc0a0e4505078c51
changes/32/18132/2
Steven Hardy 10 years ago
parent fc83066295
commit 32855ed499

@ -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

Loading…
Cancel
Save