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 50eb40a..83de979 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"