Fix check image

This commit is contained in:
Shiming Zhang 2025-02-08 19:13:50 +08:00
parent 72e6730443
commit bed1cd3c82
1 changed files with 3 additions and 0 deletions

View File

@ -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