1
0
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:
Richard Su
2025-09-08 17:28:54 -04:00
committed by barbacbd
parent c3ebbe3e25
commit 30c7416e98
4 changed files with 4 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env sh
#!/bin/bash
set -euo pipefail

View File

@@ -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

View File

@@ -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

View File

@@ -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