mirror of
https://github.com/DaoCloud/public-image-mirror.git
synced 2025-08-08 22:50:46 +08:00
Fix check image
This commit is contained in:
@@ -7,6 +7,9 @@ image=$2
|
||||
function check_allows() {
|
||||
local file=$1
|
||||
local image=$2
|
||||
if [[ "${image}" == *":" ]]; then
|
||||
return 1
|
||||
fi
|
||||
while read line; do
|
||||
if [[ "${line}" == *"**" ]]; then
|
||||
if [[ "${image}" == "${line%\*\*}"* ]]; then
|
||||
|
Reference in New Issue
Block a user