diff options
author | Guido Günther <agx@sigxcpu.org> | 2023-02-25 14:27:43 +0100 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2023-02-25 14:27:43 +0100 |
commit | c72464b901f6e0a1710404b3ca85f785fba467fd (patch) | |
tree | a95b10302c35b739f1f94439104e5403d8644f0a | |
parent | 11728ec3158e315697adb0384b7cedbc0333e1f7 (diff) |
gbp-upload: Check if remote exists
-rwxr-xr-x | examples/gbp-upload | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/gbp-upload b/examples/gbp-upload index 5717488f..a546fb68 100755 --- a/examples/gbp-upload +++ b/examples/gbp-upload @@ -20,6 +20,11 @@ VERSION="$(dpkg-parsechangelog -S Version)" SOURCE="$(dpkg-parsechangelog -S Source)" CHANGES="${DEBS_DIR}/${SOURCE}_${VERSION}_source.changes" +if ! git remote show "${REMOTE}" >/dev/null 2>&1; then + echo "Failed to access ${REMOTE}." + exit 1 +fi + less --quit-at-eof "${CHANGES}" echo "Hit <RETURN> to upload, <CTRL>-C to quit" read -r VAL |