Skip to content

Commit 0b1c7b3

Browse files
committed
Update entrypoint.sh
1 parent e65b9a4 commit 0b1c7b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ fi
3333
#拉取镜像
3434
echo "pull image: $INPUT_IMAGENAME"
3535
registry=$(echo "$INPUT_IMAGENAME" | awk -F'/' '{print $1}')
36-
if [ [ "$registry" =~ "." ] ]
36+
if [[ "$registry" =~ "." ]]
3737
then
3838
base64Registry=$(echo "{\"serveraddress\":\"$registry\"}" | base64)
3939
curl --location --request POST ''${INPUT_SERVERURL}'/api/endpoints/'$INPUT_ENDPOINTID'/docker/images/create?fromImage='$INPUT_IMAGENAME'' \

0 commit comments

Comments
 (0)