From e66f573606afe75affd95a52cf419d4a1d280d53 Mon Sep 17 00:00:00 2001 From: shim_ Date: Mon, 13 Jun 2016 16:01:47 +0200 Subject: [PATCH] compare strings not ints --- init.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.sh b/init.sh index ebb7f56..57dd230 100755 --- a/init.sh +++ b/init.sh @@ -13,7 +13,7 @@ function report_loop { function fetch_installer { curl "$RTM_DOWNLOAD_URL$RTM_VERSION" > $INSTALLER CHECKSUM=$(sha256sum $INSTALLER) - if [ "$CHECKSUM" -eq "$RTM_INSTALLER_CHECKSUM $INSTALLER" ]; then + if [ "$CHECKSUM" == "$RTM_INSTALLER_CHECKSUM $INSTALLER" ]; then chmod +x $INSTALLER $INSTALLER report_loop