Created
April 3, 2017 09:22
-
-
Save runejuhl/4ecfe7106416a2d5921a9b4df50284da to your computer and use it in GitHub Desktop.
push extension for password-store
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -o errexit | |
p=${PASSWORD_STORE_DIR:-~/.password-store} | |
for d in $(find -L $p -type d -name '.git' | xargs dirname); do | |
cd "$d" | |
( git fetch && git rebase ) | |
git push | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment