In case no command is given we initialize() anyway, so we
can just act on the default[] repository. We just have to
ensure that our "$command" is always set, thus we can not
just use $1 in the main command parsing case conditional.
-if [[ -z "${@}" ]]; then
- echo "ERROR: no commands given" >&2
- help
-fi
-# read our configuration
+command=${1:-}
+case $command in
pull)
echo "Trying to update pass repo ${PASSWORD_STORE_DIR}"
cd ${PASSWORD_STORE_DIR}
pull)
echo "Trying to update pass repo ${PASSWORD_STORE_DIR}"
cd ${PASSWORD_STORE_DIR}
- echo "Remaining pass commands: $@"