Skip to content

Commit 172388b

Browse files
rgee0alexellis
authored andcommitted
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 <richard@technologee.co.uk>
1 parent 0ccdbe0 commit 172388b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

get.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ checkHash(){
4343

4444
targetFileDir=${targetFile%/*}
4545

46-
(cd $targetFileDir && curl -sSL $url.sha256|$sha_cmd -c -s)
46+
(cd $targetFileDir && curl -sSL $url.sha256|$sha_cmd -c >/dev/null)
4747

4848
if [ "$?" != "0" ]; then
4949
rm $targetFile

0 commit comments

Comments
 (0)