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