dist/ci: fallback to /public OBS API in the event of no OBS_PASS

This commit is contained in:
Jimmy Berry
2017-09-01 18:35:41 -05:00
parent 846eb45a6f
commit 3fb1a4a641

5
dist/ci/osc-init vendored
View File

@@ -1,6 +1,9 @@
#!/bin/bash
OBS_API="${OBS_API:-https://api.opensuse.org/public}"
OBS_API="${OBS_API:-https://api.opensuse.org}"
if [ -z ${OBS_PASS+x} ] || [ -z "$OBS_PASS" ] ; then
OBS_API="$OBS_API/public"
fi
cat << eom > ~/.oscrc
[general]