]> git.sven.stormbind.net Git - sven/scripts.git/blobdiff - home/mpass.sh
Ignore timeouts on the envertech portal
[sven/scripts.git] / home / mpass.sh
index 222349cd134f038a674bb48ca7a0a8d4059c958d..bd6127404378155256245707ce7cf70341ea6ee4 100755 (executable)
@@ -13,7 +13,7 @@ function help {
     multiple repository.
 
     Before you get started create a configuration file in
-    ${HOME}/.mpass. This fill must contain an associative bash array
+    ${HOME}/.mpass. This file must contain an associative bash array
     named "REPO_STORE_DIR[reponame]" to define your repository location.
     The default repoistory should be named "default" is used when no
     other repository name is defined with "-r" on the mpass invocation.
@@ -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 ${@}