From patchwork Mon Sep 11 19:32:32 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Ga=C3=ABl_PORTAY?= X-Patchwork-Id: 812559 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3xrdPG5jS7z9s7C for ; Tue, 12 Sep 2017 05:32:49 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 900BF86D02; Mon, 11 Sep 2017 19:32:45 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ljkBxWaCATtF; Mon, 11 Sep 2017 19:32:44 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 0D80186CE7; Mon, 11 Sep 2017 19:32:44 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 800721CEB4F for ; Mon, 11 Sep 2017 19:32:42 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 7A0AE872B1 for ; Mon, 11 Sep 2017 19:32:42 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id C06KnM+v9e7U for ; Mon, 11 Sep 2017 19:32:41 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail.savoirfairelinux.com (mail.savoirfairelinux.com [208.88.110.44]) by whitealder.osuosl.org (Postfix) with ESMTPS id 825CF85A17 for ; Mon, 11 Sep 2017 19:32:41 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.savoirfairelinux.com (Postfix) with ESMTP id 19E339C1A0D; Mon, 11 Sep 2017 15:32:40 -0400 (EDT) Received: from mail.savoirfairelinux.com ([127.0.0.1]) by localhost (mail.savoirfairelinux.com [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id ucdesMdndu7f; Mon, 11 Sep 2017 15:32:39 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mail.savoirfairelinux.com (Postfix) with ESMTP id B77499C1A0E; Mon, 11 Sep 2017 15:32:39 -0400 (EDT) X-Virus-Scanned: amavisd-new at mail.savoirfairelinux.com Received: from mail.savoirfairelinux.com ([127.0.0.1]) by localhost (mail.savoirfairelinux.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id xnbIhtE_xAX2; Mon, 11 Sep 2017 15:32:39 -0400 (EDT) Received: from gportay.mtl.sfl (unknown [192.168.49.24]) by mail.savoirfairelinux.com (Postfix) with ESMTPSA id 963829C1A0D; Mon, 11 Sep 2017 15:32:39 -0400 (EDT) From: =?utf-8?q?Ga=C3=ABl_PORTAY?= To: buildroot@buildroot.org, "Yann E. MORIN" Date: Mon, 11 Sep 2017 15:32:32 -0400 Message-Id: <20170911193232.3072-1-gael.portay@savoirfairelinux.com> X-Mailer: git-send-email 2.13.2 MIME-Version: 1.0 Cc: =?utf-8?q?Ga=C3=ABl_PORTAY?= Subject: [Buildroot] [PATCH] support/download: fix check_one_hash description X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Function check_one_hash takes three arguments: - algo hash - known hash - file to hash Signed-off-by: Gaƫl PORTAY Acked-by: "Yann E. MORIN" --- support/download/check-hash | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/support/download/check-hash b/support/download/check-hash index c1ff53c02b..fe9c10570e 100755 --- a/support/download/check-hash +++ b/support/download/check-hash @@ -42,8 +42,9 @@ if [ ! -f "${h_file}" ]; then fi # Check one hash for a file -# $1: known hash -# $2: file (full path) +# $1: algo hash +# $2: known hash +# $3: file (full path) check_one_hash() { _h="${1}" _known="${2}"