added link cmd
This commit is contained in:
10
gpush
10
gpush
@@ -15,12 +15,20 @@ if [[ -z "$token" ]]; then
|
||||
fi
|
||||
gpg_key='75D6600BEF4E8E8F'
|
||||
url="https://luke:${token}@git.drheck.dev/luke/${project}.git"
|
||||
if [[ "$project" == 'pass' ]]; then
|
||||
if [[ "$project" == 'pass' ]]; then
|
||||
pass git config user.signingkey "$gpg_key"!
|
||||
pass git config commit.gpgsign true
|
||||
pass git push "$url"
|
||||
if [[ $? != 0 ]]; then
|
||||
printf 'no upstream. setting..\n' >&2
|
||||
git push --set-upstream "$url" main
|
||||
fi
|
||||
else
|
||||
git config user.signingkey "$gpg_key"!
|
||||
git config commit.gpgsign true
|
||||
git push "$url"
|
||||
if [[ $? != 0 ]]; then
|
||||
printf 'no upstream. setting..\n' >&2
|
||||
git push --set-upstream "$url" main
|
||||
fi
|
||||
fi
|
||||
|
Reference in New Issue
Block a user