diff --git a/hack/correct-image.sh b/hack/correct-image.sh index 75d1bfd..7416940 100755 --- a/hack/correct-image.sh +++ b/hack/correct-image.sh @@ -3,8 +3,9 @@ function guess_image() { local image="${1}" - image="${image# }" - image="${image% }" + image="${image// /}" + image="${image#\/}" + image="${image%\/}" if [[ -z "${image}" ]]; then return