summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2020-04-04 00:11:05 -0700
committerSean Whitton <spwhitton@spwhitton.name>2020-04-04 00:11:05 -0700
commitd085593e933c4b0792e7545ed891f7ce1cfcb781 (patch)
tree01f9be5fb9719a9ece602d79012a4dbcedf91d79
parent9182b611606651a7dc7cecb917c12df87a14838c (diff)
downloaddotfiles-d085593e933c4b0792e7545ed891f7ce1cfcb781.tar.gz
error checking
-rwxr-xr-xbin/buildssrht-preupload2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/buildssrht-preupload b/bin/buildssrht-preupload
index 47fb34bb..9d81e592 100755
--- a/bin/buildssrht-preupload
+++ b/bin/buildssrht-preupload
@@ -42,6 +42,8 @@ my ($clone_uri) = $git->remote("get-url", $remote);
chomp(my $source = `dpkg-parsechangelog -SSource`);
chomp(my $version = `dpkg-parsechangelog -SVersion`);
+$source or die "couldn't determine source package name";
+$version or die "couldn't determine source package version";
my $note = "Pre-upload checks for $source $version";
$git->fetch($remote);