bins/rpr: catch unset error code and continue

This commit is contained in:
Aaron Bieber 2023-05-31 22:15:35 -06:00
parent f2283b1eac
commit 0d18a6483f
No known key found for this signature in database

View File

@ -25,7 +25,7 @@ in ''
# ${htBin} # ${htBin}
${htBin} git create "$proj" || echo "error creating '$proj' on 'sr.ht'" ${htBin} git create "$proj" || echo "error creating '$proj' on 'sr.ht'"
git config --unset-all remote.origin.url git config --unset-all remote.origin.url || echo "no remote defined..."
for repo in "git@github.com:qbit/%s.git" "git@gitle.humpback-trout.ts.net:%s" "ssh://gitea@git.tapenet.org:2222/qbit/%s.git" "git@codeberg.org:qbit/%s.git" "git@git.sr.ht:~qbit/%s"; do for repo in "git@github.com:qbit/%s.git" "git@gitle.humpback-trout.ts.net:%s" "ssh://gitea@git.tapenet.org:2222/qbit/%s.git" "git@codeberg.org:qbit/%s.git" "git@git.sr.ht:~qbit/%s"; do
echo "Adding remote: $(printf $repo $proj)" echo "Adding remote: $(printf $repo $proj)"
git config --add remote.origin.url "$(printf $repo $proj)" git config --add remote.origin.url "$(printf $repo $proj)"