From: Michael Tremer Date: Thu, 13 Feb 2020 09:32:29 +0000 (+0000) Subject: build.sh: Do not connect to server when there is nothing to upload X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8e3d51d00ae1cd0904fdd026925fcdeacc94c973;p=people%2Fms%2Fnightly-builds.git build.sh: Do not connect to server when there is nothing to upload Signed-off-by: Michael Tremer --- diff --git a/build.sh b/build.sh index fcb7699..4afedbc 100755 --- 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}"