File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ srcdir=$(pwd)
31
31
32
32
configure_yum_repos () {
33
33
[ " ${arch} " == " riscv64" ] && return # No continuous repo for riscv64 yet
34
- [ " ${NO_NETWORK} " == " 1" ] && return
34
+ [ " ${NO_NETWORK:- 0 } " == " 1" ] && return
35
35
local version_id
36
36
version_id=$( . /etc/os-release && echo ${VERSION_ID} )
37
37
# Add continuous tag for latest build tools and mark as required so we
@@ -47,7 +47,7 @@ install_rpms() {
47
47
# First, a general update; this is best practice. We also hit an issue recently
48
48
# where qemu implicitly depended on an updated libusbx but didn't have a versioned
49
49
# requires https://bugzilla.redhat.com/show_bug.cgi?id=1625641
50
- [ " ${NO_NETWORK} " == " 0" ] && yum -y distro-sync
50
+ [ " ${NO_NETWORK:- 0 } " == " 0" ] && yum -y distro-sync
51
51
52
52
# xargs is part of findutils, which may not be installed
53
53
yum -y install /usr/bin/xargs
@@ -105,7 +105,7 @@ install_rpms() {
105
105
# to CoreOS.
106
106
install_ocp_tools () {
107
107
[ " ${arch} " == " riscv64" ] && return # No ocp tools for riscv64
108
- if [ " ${NO_NETWORK} " == " 0" ]; then
108
+ if [ " ${NO_NETWORK:- 0 } " == " 0" ]; then
109
109
# If $OCP_VERSION is defined we'll grab that specific version.
110
110
# Otherwise we'll get the latest.
111
111
local url=" https://mirror.openshift.com/pub/openshift-v4/${arch} /clients/ocp/latest${OCP_VERSION: +-$OCP_VERSION } /openshift-client-linux.tar.gz"
You can’t perform that action at this time.
0 commit comments