Fix check image
This commit is contained in:
parent
72e6730443
commit
bed1cd3c82
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue