Skip to content

Commit

Permalink
Lowercase repository and image (#114)
Browse files Browse the repository at this point in the history
* Lowercase repository and image

* Fix SC2184
  • Loading branch information
ludeeus authored Nov 17, 2021
1 parent cc4ad64 commit 9ed3274
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions builder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,8 @@ function run_build() {
local release="${version}"

# Overwrites
if bashio::var.has_value "${DOCKER_HUB}"; then repository="${DOCKER_HUB}"; fi
if bashio::var.has_value "${IMAGE}"; then image="${IMAGE}"; fi
if bashio::var.has_value "${DOCKER_HUB}"; then repository="${DOCKER_HUB@L}"; fi
if bashio::var.has_value "${IMAGE}"; then image="${IMAGE@L}"; fi
if bashio::var.has_value "${RELEASE}"; then release="${RELEASE}"; fi

# Replace {arch} with build arch for image
Expand Down Expand Up @@ -687,7 +687,7 @@ function extract_machine_build() {
done

for i in "${remove[@]}"; do
unset BUILD_MACHINE["$i"]
unset "${BUILD_MACHINE["$i"]}"
done
fi
}
Expand Down

0 comments on commit 9ed3274

Please sign in to comment.