diff --git a/init.sh b/init.sh index 409dc9f..d7150e3 100755 --- a/init.sh +++ b/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