aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2023-02-25 14:27:43 +0100
committerGuido Günther <agx@sigxcpu.org>2023-02-25 14:27:43 +0100
commitc72464b901f6e0a1710404b3ca85f785fba467fd (patch)
treea95b10302c35b739f1f94439104e5403d8644f0a
parent11728ec3158e315697adb0384b7cedbc0333e1f7 (diff)
gbp-upload: Check if remote exists
-rwxr-xr-xexamples/gbp-upload5
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