Update containers_version.sh

This commit is contained in:
qiaofeng1227 2022-07-15 16:51:06 +08:00 committed by GitHub
parent 65c0cd2039
commit 2469a5a8b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,11 +16,15 @@ for appname in $appnames; do
if [[ $containername == $appname ]];then
echo "$containername容器匹配成功app:$appname"
wget -O /tmp/$appname_get_version.sh https://raw.githubusercontent.com/Websoft9/StackHub/main/scripts/containers_version.sh
bash /tmp/$appname_get_version.sh $containername
break
elif [[ $imagename =~ $appname ]];then
tmpvar="-"
if [[ $containername =~ $tmpvar ]];then
echo "$imagename=镜像匹配成功app:$appname"
wget -O /tmp/$appname_get_version.sh https://raw.githubusercontent.com/Websoft9/StackHub/main/scripts/containers_version.sh
bash /tmp/$appname_get_version.sh $containername
break
else
echo "need other mothod "