From ed66192568f06127d0a6ab589bdeec0b273c5363 Mon Sep 17 00:00:00 2001 From: Sven Hoexter Date: Thu, 13 Dec 2018 20:27:44 +0100 Subject: [PATCH] use pass git build in logic for push and pull operations --- home/mpass.sh | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/home/mpass.sh b/home/mpass.sh index 222349c..7cc3a9c 100755 --- a/home/mpass.sh +++ b/home/mpass.sh @@ -25,8 +25,8 @@ function help { Commands: - pull: executes a "git pull" in the configured REPO_STORE_DIR[reponame] - push: executes a "git push" in the configured REPO_STORE_DIR[reponame] + pull: executes a "pass git pull --all" for the selected pass repo + push: executes a "pass git push --all" for the selected pass repo EOF exit 42 @@ -89,19 +89,11 @@ command=${1:-} case $command in pull) echo "Trying to update pass repo ${PASSWORD_STORE_DIR}" - cd ${PASSWORD_STORE_DIR} - set +e - git pull - set -e - cd - + pass git pull --all ;; push) echo "Trying to push pass repo ${PASSWORD_STORE_DIR}" - cd ${PASSWORD_STORE_DIR} - set +e - git push - set -e - cd - + pass git push --all ;; *) pass ${@} -- 2.39.5