X-Git-Url: http://git.sven.stormbind.net/?p=sven%2Fscripts.git;a=blobdiff_plain;f=home%2Fmpass.sh;h=222349cd134f038a674bb48ca7a0a8d4059c958d;hp=8d88b6d7735cc35989d351e726d83b6647aabbc7;hb=d940a26ac0e135acdc72ec1a57fce4b8a6e7cae0;hpb=8747c72b953e5eadf25677e1d0bb9003bfcdc211 diff --git a/home/mpass.sh b/home/mpass.sh index 8d88b6d..222349c 100755 --- a/home/mpass.sh +++ b/home/mpass.sh @@ -82,15 +82,11 @@ while getopts ":r:" option; do esac done -if [[ -z "${@}" ]]; then - echo "ERROR: no commands given" >&2 - help -fi -# read our configuration initialize -case $1 in +command=${1:-} +case $command in pull) echo "Trying to update pass repo ${PASSWORD_STORE_DIR}" cd ${PASSWORD_STORE_DIR} @@ -108,7 +104,6 @@ case $1 in cd - ;; *) - echo "Remaining pass commands: $@" pass ${@} ;; esac