mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-25 09:00:26 +00:00
Update containers_version.sh
This commit is contained in:
parent
6f931f9a4d
commit
37d58e5779
1 changed files with 12 additions and 1 deletions
|
@ -28,7 +28,18 @@ for appinfo in $(docker ps --format '{{.Names}}%{{.Image}}'); do
|
|||
wget -O /tmp/"$appname"_get_version.sh https://raw.githubusercontent.com/Websoft9/docker-$appname/main/src/get_version.sh
|
||||
bash /tmp/"$appname"_get_version.sh $containername
|
||||
break
|
||||
elif [[ $imagename =~ $appname ]];then
|
||||
fi
|
||||
done
|
||||
done
|
||||
|
||||
for appinfo in $(docker ps --format '{{.Names}}%{{.Image}}'); do
|
||||
|
||||
containername=$(echo $appinfo |awk -F"%" '{print $1}')
|
||||
imagename=$(echo $appinfo |awk -F"%" '{print $2}')
|
||||
|
||||
for appname in $appnames; do
|
||||
|
||||
if [[ $imagename =~ $appname ]];then
|
||||
if [[ $targetlist =~ $appname ]];then
|
||||
continue
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue