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:
parent
6eba270a11
commit
45923847e7
4
init.sh
4
init.sh
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user