redirect error message to stderr

This commit is contained in:
Daniel Jakots 2017-05-20 21:48:06 -04:00
parent b645e2fd7b
commit 65e4ed5a44

View file

@ -8,9 +8,9 @@ WWWDIR=/var/www/htdocs/vpn/ssl
if [ "$(id -u)" != "0" ]; then if [ "$(id -u)" != "0" ]; then
echo "Please become root before running shellpki!" echo "Please become root before running shellpki!" >&2
echo echo >&2
echo "Press return to continue..." echo "Press return to continue..." >&2
read REPLY read REPLY
exit 1 exit 1
fi fi
@ -152,9 +152,9 @@ fromcsr() {
echo echo
if [ ! -e $path ]; then if [ ! -e $path ]; then
echo "Error in path..." echo "Error in path..." >&2
echo echo >&2
echo "Press return to continue..." echo "Press return to continue..." >&2
read REPLY read REPLY
exit 1 exit 1
fi fi
@ -221,7 +221,7 @@ case "$1" in
;; ;;
*) *)
echo "Usage: shellpki.sh {init|create|fromcsr|revoke|crl}" echo "Usage: shellpki.sh {init|create|fromcsr|revoke|crl}" >&2
exit 1 exit 1
;; ;;
esac esac