dist/ci/osc-init: allow output file location to be set via OSCRC env var.
This commit is contained in:
parent
d1022403cb
commit
4c01a602a7
3
dist/ci/osc-init
vendored
3
dist/ci/osc-init
vendored
@ -1,5 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
: ${OSCRC:=~/.oscrc}
|
||||
OBS_API="${OBS_API:-https://api.opensuse.org}"
|
||||
if [ -z ${OBS_PASS+x} ] || [ -z "$OBS_PASS" ] ; then
|
||||
OBS_API="$OBS_API/public"
|
||||
@ -8,7 +9,7 @@ fi
|
||||
echo "OBS_API=$OBS_API"
|
||||
echo "OBS_USER=$OBS_USER"
|
||||
|
||||
cat << eom > ~/.oscrc
|
||||
cat << eom > "$OSCRC"
|
||||
[general]
|
||||
apiurl = $OBS_API
|
||||
[$OBS_API]
|
||||
|
Loading…
x
Reference in New Issue
Block a user