1
0
mirror of https://bitbucket.org/shim_/docker-rtm.git synced 2018-10-04 01:52:08 +02:00

add .sh to url

run loop if cached
This commit is contained in:
shim_ 2016-06-13 16:08:11 +02:00
parent 6eba270a11
commit 45923847e7

View File

@ -11,12 +11,11 @@ function report_loop {
}
function fetch_installer {
curl "$RTM_DOWNLOAD_URL$RTM_VERSION" > $INSTALLER
curl "$RTM_DOWNLOAD_URL$RTM_VERSION.sh" > $INSTALLER
CHECKSUM=$(sha256sum $INSTALLER)
if [ "$CHECKSUM" == "$RTM_INSTALLER_CHECKSUM $INSTALLER" ]; then
chmod +x $INSTALLER
$INSTALLER
report_loop
else
echo Checksum mismatch!
exit 1
@ -32,4 +31,5 @@ else
else
fetch_installer
fi
report_loop
fi