don't hardcode progname

This commit is contained in:
Daniel Jakots 2017-05-20 21:50:23 -04:00
parent 65e4ed5a44
commit 5f913162af
1 changed files with 3 additions and 3 deletions

View File

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