diff options
author | Guido Günther <agx@sigxcpu.org> | 2022-12-09 21:46:34 +0100 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2022-12-09 21:46:34 +0100 |
commit | cfaf0e9b5e8b7e57c9dcd99a019451cb69a74b46 (patch) | |
tree | 2ec5298e8372058af5bed7bbb3f80235dcafa378 | |
parent | afcd15b189e84488466000b7af1747ebdce37c48 (diff) |
upload: Handle empty export-dir
Gbp-Dch: Ignore
-rwxr-xr-x | examples/gbp-upload | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/gbp-upload b/examples/gbp-upload index 0a086e56..5717488f 100755 --- a/examples/gbp-upload +++ b/examples/gbp-upload @@ -12,7 +12,7 @@ if gbp config upload.remote; then REMOTE="$(gbp config upload.remote)" fi -if gbp config buildpackage.export-dir; then +if [ -n "$(gbp config buildpackage.export-dir)" ] ; then DEBS_DIR="$(gbp config buildpackage.export-dir)" fi @@ -26,7 +26,7 @@ read -r VAL echo "Signing tag and built artifacts" gbp tag -debsign --debs-dir ${DEBS_DIR} -S +debsign --debs-dir "${DEBS_DIR}" -S echo "Uploading ${CHANGES}" dput $@ "${CHANGES}" |