mirror of
https://github.com/openshift/installer.git
synced 2026-02-05 15:47:14 +01:00
OCPBUGS-61373: Fix shellcheck issues in bootstrap
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env sh
|
||||
#!/bin/bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ function lookup_url() {
|
||||
unset IPS
|
||||
unset IP
|
||||
IPS=$(dig "${2}" +short)
|
||||
if [[ ! -z "${IPS}" ]] ; then
|
||||
if [[ -n "${IPS}" ]] ; then
|
||||
echo "Successfully resolved ${1} ${2}"
|
||||
return 0
|
||||
else
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
# Get target architecture
|
||||
arch=$(uname -m)
|
||||
|
||||
if test "x${1}" = 'x--id'
|
||||
if test "${1}" = '--id'
|
||||
then
|
||||
GATHER_ID="${2}"
|
||||
shift 2
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
# Get target architecture
|
||||
arch=$(uname -m)
|
||||
|
||||
if test "x${1}" = 'x--id'
|
||||
if test "${1}" = '--id'
|
||||
then
|
||||
GATHER_ID="${2}"
|
||||
shift 2
|
||||
|
||||
Reference in New Issue
Block a user