]> git.ipfire.org Git - people/ms/nightly-builds.git/commitdiff
build.sh: Do not connect to server when there is nothing to upload
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 13 Feb 2020 09:32:29 +0000 (09:32 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 13 Feb 2020 09:32:29 +0000 (09:32 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
build.sh

index fcb7699c5f07302458b3476f0852a97f74c19e90..4afedbc92f43138f598be8bc369cfb5728da631c 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -176,7 +176,8 @@ build() {
 }
 
 sync() {
-       mkdir -p "${UPLOAD_DIR}"
+       # Do not attempt to upload anything if nothing exists
+       [ ! -d "${UPLOAD_DIR}" ] && return 0
 
        # Acquire a Kerberos ticket for authentication
        kinit -k -t /etc/krb5.keytab "host/${HOSTNAME}"