From dd5756d341818d49d806854a024cb693e5dda9b3 Mon Sep 17 00:00:00 2001 From: Richard Gee Date: Mon, 16 Jul 2018 20:04:21 +0100 Subject: [PATCH] Replace shorthand status flag with long verion in get.sh As part of the graceful degradation change use of sha256sum was introduced. On Ubuntu 16.04 the shorthand flag for status does not exist which results in a failure when verifying the checksum. Further, support for -s & the long --status is inconsistent across distros. This change replaces the -s option which suppresses output in favour of redirection to /dev/null. Signed-off-by: Richard Gee --- get.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/get.sh b/get.sh index f1f4f1aa6..daf94cb59 100755 --- a/get.sh +++ b/get.sh @@ -43,7 +43,7 @@ checkHash(){ targetFileDir=${targetFile%/*} - (cd $targetFileDir && curl -sSL $url.sha256|$sha_cmd -c -s) + (cd $targetFileDir && curl -sSL $url.sha256|$sha_cmd -c >/dev/null) if [ "$?" != "0" ]; then rm $targetFile