]> git.sven.stormbind.net Git - sven/scripts.git/blobdiff - artifactory/aput.sh
consider the content of DISTROS env variable
[sven/scripts.git] / artifactory / aput.sh
index 5ac296d132a2ed6860fa9870b4d849b94e48981b..83de979280902eaa45dbbf77cad958510a20893d 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/bash
 
 APIKEY=""
-DISTROS="jessie stretch"
+DISTROS="${DISTROS:-jessie stretch}"
 COMPONENT="main"
 BASE_URL="https://artifactory.foobar/artifactory"
 REPO="foobar"
@@ -46,7 +46,7 @@ curl -s "${REPO_URL}/${PKG};${DIST}deb.component=${COMPONENT};deb.architecture=$
 ret="$?"
 
 if [ "$ret" != "0" ]; then
-  echo "ERROR: Uploading your package ${pkg} to ${REPO_URL} failed - aborting"
+  echo "ERROR: Uploading your package ${PKG} to ${REPO_URL} failed - aborting"
   exit 1
 fi
 printf "\n"