This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Use -c instead of check for sha512sum


Busybox doesn't support "check", which is an alias for "-c" in
coreutils. Tested on Alpine Edge and Fedora 29.

2019-03-09  Tommy Nguyen  <remyabel@gmail.com>

    PR contrib/82704
    * contrib/download_prerequisites: Use -c instead of check for
    sha512sum
---
 contrib/download_prerequisites | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/contrib/download_prerequisites b/contrib/download_prerequisites
index b50f47cda79..72976c46c92 100755
--- a/contrib/download_prerequisites
+++ b/contrib/download_prerequisites
@@ -51,7 +51,7 @@ case $OS in
     chksum='shasum -a 512 --check'
   ;;
   *)
-    chksum='sha512sum --check'
+    chksum='sha512sum -c'
   ;;
 esac
 
-- 
2.20.1


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]