fix env var handling
Some checks reported errors
continuous-integration/drone/push Build was killed
continuous-integration/drone/tag Build is passing

This commit is contained in:
Robert Kaussow 2019-08-13 23:20:36 +02:00
parent 906756da3f
commit ffd84577a2

View File

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