uccpass: stop using and just call a spade a spade
authorDavid Adam <[email protected]>
Mon, 13 Apr 2015 15:13:29 +0000 (23:13 +0800)
committerDavid Adam <[email protected]>
Mon, 13 Apr 2015 15:13:29 +0000 (23:13 +0800)
uccpass

diff --git a/uccpass b/uccpass
index 62c42e3..fc83554 100755 (executable)
--- a/uccpass
+++ b/uccpass
 init () {
     # Check for pass subcommand
     if ! type pass >/dev/null; then
 init () {
     # Check for pass subcommand
     if ! type pass >/dev/null; then
-        echo "$0: can't find the pass(1) command, is it installed correctly?"
+        echo "uccpass: can't find the pass(1) command, is it installed correctly?"
     fi
     if ! type gpg2 >/dev/null; then
     fi
     if ! type gpg2 >/dev/null; then
-        echo "$0: can't find gpg2(1), is it installed correctly?"
+        echo "uccpass: can't find gpg2(1), is it installed correctly?"
     fi
 
     UCCPASS_ROOT="/home/wheel/bin/uccpass"
     fi
 
     UCCPASS_ROOT="/home/wheel/bin/uccpass"
@@ -76,7 +76,7 @@ refresh_keys () {
 }
 
 new_user_setup () {
 }
 
 new_user_setup () {
-    echo " >  Setting you up for $0"
+    echo " >  Setting you up for uccpass"
 
     # Set up an agent
     echo -n " >> Checking for running GPG agent... "
 
     # Set up an agent
     echo -n " >> Checking for running GPG agent... "
@@ -85,7 +85,7 @@ new_user_setup () {
         echo "not found."
         USER_SHELL=`basename $SHELL`
         if echo $USER_SHELL | egrep -q 'zsh|bash|fish'; then
         echo "not found."
         USER_SHELL=`basename $SHELL`
         if echo $USER_SHELL | egrep -q 'zsh|bash|fish'; then
-            echo " [!] $0 can install an password caching agent into your shell initialisation files."
+            echo " [!] uccpass can install an password caching agent into your shell initialisation files."
             echo -n " [?] Do you want to do so? [Y/n] " 
             read install_agent
             case $install_agent in
             echo -n " [?] Do you want to do so? [Y/n] " 
             read install_agent
             case $install_agent in
@@ -141,8 +141,8 @@ new_user_setup () {
     fi
 
     # Done!
     fi
 
     # Done!
-    echo " > $0 setup complete."
-    echo " [!] Ask someone with existing access to the password store to run \`$0 reload\`."
+    echo " > uccpass setup complete."
+    echo " [!] Ask someone with existing access to the password store to run \`uccpass reload\`."
 }
 
 init
 }
 
 init
@@ -161,7 +161,7 @@ case "$1" in
         ;;
     help|--help)
         command pass $@
         ;;
     help|--help)
         command pass $@
-        echo "$0 also supports the following commands:"
+        echo "uccpass also supports the following commands:"
         echo "setup: generate a new key and insert it into the password store"
         echo "reload: re-encrypt the password store"
         ;;
         echo "setup: generate a new key and insert it into the password store"
         echo "reload: re-encrypt the password store"
         ;;

UCC git Repository :: git.ucc.asn.au