1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/libnetwork/support/run.sh
Flavio Crisciani 5de876c7ae Add auto update to support.sh
Before running the support script
try to fetch the latest version

Signed-off-by: Flavio Crisciani <flavio.crisciani@docker.com>
2018-06-20 15:29:45 -07:00

14 lines
368 B
Bash
Executable file

#!/bin/sh
# try to fetch the latest version from github
wget -O support.sh.new https://raw.githubusercontent.com/docker/libnetwork/master/support/support.sh
if [ "$?" -eq "0" ]; then
mv support.sh.new support.sh
chmod +x support.sh
else
echo "issue fetching the latest support.sh, will use the container version"
fi
echo "run the support script"
./support.sh