Update correct image

This commit is contained in:
Shiming Zhang 2024-06-24 10:19:29 +08:00
parent aaea8b2961
commit 417bdacde8
1 changed files with 3 additions and 2 deletions

View File

@ -3,8 +3,9 @@
function guess_image() { function guess_image() {
local image="${1}" local image="${1}"
image="${image# }" image="${image// /}"
image="${image% }" image="${image#\/}"
image="${image%\/}"
if [[ -z "${image}" ]]; then if [[ -z "${image}" ]]; then
return return