mirror of
https://github.com/DaoCloud/public-image-mirror.git
synced 2025-08-08 05:32:41 +08:00
Update correct image
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user