all repos — pw @ 2b87c05c6e3773f299a566323756fac133cab6bc

minimal password store

Commit and push
Anirudh Oppiliappan x@icyphox.sh
Wed, 22 Sep 2021 11:49:11 +0530
commit

2b87c05c6e3773f299a566323756fac133cab6bc

parent

f4ab00e5ac6fc80bc9a3d852ec521f1f208dbf42

1 files changed, 10 insertions(+), 1 deletions(-)

jump to
M pwpw

@@ -37,8 +37,17 @@ if [[ ! -f "$PW_DIR/$1.gpg" ]]; then

printf "%s" "$pass" | "$gpg" -aer "$PW_KEY" -o "$PW_DIR/$1.gpg" printf "pw: %s/%s.gpg created\n" "$PW_DIR" "$1" else - die "the file %s/%s.gpg exists" "$PW_DIR" "$1" + die "the file $PW_DIR/$1.gpg exists" fi + ( + cd $PW_DIR + git add . + git commit -m "$(date)" + remote="$(git remote show)" + branch="$(git branch --show-current)" + git pull -r "$remote" "$branch" + git push "$remote" "$branch" + ) } list() {