Skip to content

Instantly share code, notes, and snippets.

@conorsch
Last active March 17, 2021 20:50
Show Gist options
  • Save conorsch/f70854ed62a63efeeb3eefd8c959fb35 to your computer and use it in GitHub Desktop.
Save conorsch/f70854ed62a63efeeb3eefd8c959fb35 to your computer and use it in GitHub Desktop.
diff --git a/scripts/build-debianpackage b/scripts/build-debianpackage
index 3b7e521..e697eeb 100755
--- a/scripts/build-debianpackage
+++ b/scripts/build-debianpackage
@@ -83,7 +83,7 @@ function build_source_tarball() {
rm -rf "$build_dir"
git clone "$repo_url" "$build_dir"
- if [[ -n "$PKG_GITREF" ]]; then
+ if [[ -n "${PKG_GITREF:-}" ]]; then
# Can't expect a prod sig on a gitref, likely a feature branch
git -C "$build_dir" checkout "$PKG_GITREF"
else
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment