From patchwork Thu Dec 19 17:48:06 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Johannes_L=C3=B6thberg?= X-Patchwork-Id: 1415 X-Patchwork-Delegate: polycitizen@gmail.com Return-Path: Delivered-To: patchwork@archlinux.org Received: from apollo.archlinux.org (localhost [127.0.0.1]) by apollo.archlinux.org (Postfix) with ESMTP id 3428815BD2CEE for ; Thu, 19 Dec 2019 17:48:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.3 (2019-12-06) on apollo.archlinux.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED=0.1, DKIM_VALID=-0.1,DKIM_VALID_AU=-0.1,MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3,SPF_HELO_NONE=0.001,T_DMARC_POLICY_NONE=0.01 autolearn=ham autolearn_force=no version=3.4.3 X-Spam-BL-Results: [127.0.9.2] Received: from orion.archlinux.org (orion.archlinux.org [IPv6:2a01:4f8:160:6087::1]) by apollo.archlinux.org (Postfix) with ESMTPS for ; Thu, 19 Dec 2019 17:48:16 +0000 (UTC) Received: from orion.archlinux.org (localhost [127.0.0.1]) by orion.archlinux.org (Postfix) with ESMTP id 4FC991758C4702; Thu, 19 Dec 2019 17:48:14 +0000 (UTC) Received: from luna.archlinux.org (luna.archlinux.org [IPv6:2a01:4f8:160:3033::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: luna) by orion.archlinux.org (Postfix) with ESMTPSA id 1219F1758C46FE; Thu, 19 Dec 2019 17:48:14 +0000 (UTC) Authentication-Results: orion.archlinux.org; dkim=pass (1024-bit key) header.d=kyriasis.com header.i=@kyriasis.com header.b=FRIrHJm5 Received: from luna.archlinux.org (luna.archlinux.org [127.0.0.1]) by luna.archlinux.org (Postfix) with ESMTP id 089402BE60; Thu, 19 Dec 2019 17:48:14 +0000 (UTC) Authentication-Results: luna.archlinux.org; dkim=pass (1024-bit key) header.d=kyriasis.com header.i=@kyriasis.com header.b=FRIrHJm5 Received: from luna.archlinux.org (luna.archlinux.org [127.0.0.1]) by luna.archlinux.org (Postfix) with ESMTP id E972C2BE5F for ; Thu, 19 Dec 2019 17:48:10 +0000 (UTC) Received: from theos.kyriasis.com (theos.kyriasis.com [IPv6:2a01:7e00:e000:136::1]) by luna.archlinux.org (Postfix) with ESMTPS for ; Thu, 19 Dec 2019 17:48:10 +0000 (UTC) Received: from theos.kyriasis.com (localhost [127.0.0.1]) by theos.kyriasis.com (OpenSMTPD) with ESMTP id a6652201; Thu, 19 Dec 2019 17:48:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=kyriasis.com; h=from:to:cc :subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=theos; bh=si+HixqsppcFlS4ShG6KdbIx 8KU=; b=FRIrHJm5XPOXt3059TR445aYHUAxcpRZPu4aNIGEuvhSeo/1zlRUr1qX nLMRvZyyWXrJyra4c33MguwBqV7FGthC/Ta+7FE/Nq6J7Bq/dwnPrMvSAxwwgutt KJ1z1EfFYBq3DQ3sXnBuF3ATW766SpQl4VNhRydB3mKcEmtHmQg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=kyriasis.com; h=from:to:cc :subject:date:message-id:mime-version:content-type :content-transfer-encoding; q=dns; s=theos; b=tc8N8DrqO4VV3NsWJ3 c6G/V6QBFMQkPYde9ZCjCvq+ZbHFStLayp9hcI7OXMdaz9YevFaLMKmEo0P/13zW hvRO+gpZLsZC3Py4TwHQmIinMHHXDEsY90Tox+t3xn+KTffzgneuiPxWpAvi5DL2 btZsX3A/Yb0d68olW5vmjaLCs= Received: from hydrogen.kyriasis.com (h-52-10.A572.priv.bahnhof.se [158.174.52.10]) by theos.kyriasis.com (OpenSMTPD) with ESMTPSA id def4bf06 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) auth=yes user=kyrias; Thu, 19 Dec 2019 17:48:08 +0000 (UTC) From: =?utf-8?q?Johannes_L=C3=B6thberg?= To: pacman-contrib@lists.archlinux.org Subject: [PATCH] rankmirrors: Fix argument shifting when parsing -m Date: Thu, 19 Dec 2019 18:48:06 +0100 Message-Id: <20191219174806.39966-1-johannes@kyriasis.com> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 X-BeenThere: pacman-contrib@lists.archlinux.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion list for pacman-contrib development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Johannes_L=C3=B6thberg?= Errors-To: pacman-contrib-bounces@lists.archlinux.org Sender: "pacman-contrib" Fixes FS#61923. Signed-off-by: Johannes Löthberg --- src/rankmirrors.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rankmirrors.sh.in b/src/rankmirrors.sh.in index 08f7e28..c2f564b 100644 --- a/src/rankmirrors.sh.in +++ b/src/rankmirrors.sh.in @@ -161,7 +161,7 @@ while [[ $1 ]]; do m) [[ $2 ]] || err "Must specify number."; MAX_TIME="$2" - shift 2;; + snum=2;; t) TIMESONLY=1 ;; v) VERBOSE=1 ;; u)