]> git.sven.stormbind.net Git - sven/scripts.git/commitdiff
consider the content of DISTROS env variable
authorSven Höxter <sven.hoexter@rewe-digital.com>
Fri, 27 Jul 2018 12:27:15 +0000 (14:27 +0200)
committerSven Höxter <sven.hoexter@rewe-digital.com>
Fri, 27 Jul 2018 12:27:15 +0000 (14:27 +0200)
Allows to override the DISTROS default settings with an env variable.

artifactory/aput.sh

index 50eb40abb9868176e36a387df5db4ac8165919ce..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"