fix env var handling

This commit is contained in:
Robert Kaussow 2019-08-13 23:19:57 +02:00
parent 7ac8f1ad89
commit 906756da3f

View File

@ -9,7 +9,7 @@ steps:
environment:
CUPSRELEASE: "${DRONE_TAG##v}"
commands:
- [ -z "$var" ] && CUPSRELEASE=2.2.10
- [ -z "$CUPSRELEASE" ] && CUPSRELEASE=2.2.10
- wget https://github.com/apple/cups/releases/download/v$CUPSRELEASE/cups-$CUPSRELEASE-source.tar.gz
- mkdir ./rpms
- rpmbuild -ta --define "_rpmdir $(pwd)/rpms" --without libusb1 cups-$CUPSRELEASE-source.tar.gz