fix subdir and hopefully gpg decrypt

This commit is contained in:
2022-12-13 11:38:32 -05:00
parent 7eec287f83
commit fd4d901890
3 changed files with 9 additions and 9 deletions

4
gpull
View File

@@ -9,7 +9,7 @@ fi
token="$(pass show gitea/token/${project})"
if [[ -z "$token" ]]; then
printf 'Failed to get token for %s. ' "$project" >&2
printf 'Must be one of:\n\n' "$project" >&2
printf 'Must be one of:\n\n' >&2
pass show gitea/token >&2
exit 1
fi
@@ -22,5 +22,5 @@ if [[ "$project" == 'pass' ]]; then
else
git config user.signingkey "$gpg_key"!
git config commit.gpgsign true
git pull "$url"
GPG_TTY=$(tty) git pull "$url"
fi