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}
cd -
;;
*)
- echo "Remaining pass commands: $@"
pass ${@}
;;
esac