Skip to content

Commit

Permalink
just the repo change (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
asosnovsky authored Sep 8, 2022
1 parent 62960d3 commit 73c55e2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions builder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -436,8 +436,8 @@ function build_base() {
bashio::log.error "Can't find the image tag on build.json"
return 1
fi
repository="$(echo "${raw_image}" | cut -f 1 -d '/')"
image="$(echo "${raw_image}" | cut -f 2 -d '/')"
repository="${raw_image%/*}"
image="${raw_image##*/}"

# Additional build args
if bashio::var.has_value "${args}"; then
Expand Down Expand Up @@ -535,8 +535,8 @@ function build_addon() {

# Read data from image
if [ -n "$raw_image" ]; then
repository="$(echo "$raw_image" | cut -f 1 -d '/')"
image="$(echo "$raw_image" | cut -f 2 -d '/')"
repository="${raw_image%/*}"
image="${raw_image##*/}"
fi

# Set additional labels
Expand Down Expand Up @@ -654,8 +654,8 @@ function build_machine() {
docker_cli+=("--file" "${TARGET}/${build_machine}")
fi

repository="$(echo "${raw_image}" | cut -f 1 -d '/')"
image="$(echo "${raw_image}" | cut -f 2 -d '/')"
repository="${raw_image%/*}"
image="${raw_image##*/}"

# Replace {machine} with build machine for image
# shellcheck disable=SC1117
Expand Down

0 comments on commit 73c55e2

Please sign in to comment.