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