mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-26 01:20:28 +00:00
Update containers_version.sh
This commit is contained in:
parent
65c0cd2039
commit
2469a5a8b8
1 changed files with 4 additions and 0 deletions
|
@ -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 "
|
||||
|
|
Loading…
Reference in a new issue