From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C32E4138350 for ; Sun, 19 Apr 2020 01:21:56 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D2A44E087D; Sun, 19 Apr 2020 01:21:55 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9FCDCE087D for ; Sun, 19 Apr 2020 01:21:55 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 441D634F05E for ; Sun, 19 Apr 2020 01:21:54 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C649B1DF for ; Sun, 19 Apr 2020 01:21:52 +0000 (UTC) From: "Thomas Deutschmann" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Thomas Deutschmann" Message-ID: <1587259241.190fdd480d33ef378167a15a8fb4136202445805.whissi@gentoo> Subject: [gentoo-commits] proj/eselect-rust:master commit in: / X-VCS-Repository: proj/eselect-rust X-VCS-Files: rust.eselect.in X-VCS-Directories: / X-VCS-Committer: whissi X-VCS-Committer-Name: Thomas Deutschmann X-VCS-Revision: 190fdd480d33ef378167a15a8fb4136202445805 X-VCS-Branch: master Date: Sun, 19 Apr 2020 01:21:52 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 740f26e5-08c6-485b-89a2-bbc962ecb580 X-Archives-Hash: 6ef94f985242d7f42818b0c1a734dcd2 commit: 190fdd480d33ef378167a15a8fb4136202445805 Author: Thomas Deutschmann gentoo org> AuthorDate: Sun Apr 19 01:20:41 2020 +0000 Commit: Thomas Deutschmann gentoo org> CommitDate: Sun Apr 19 01:20:41 2020 +0000 URL: https://gitweb.gentoo.org/proj/eselect-rust.git/commit/?id=190fdd48 rust.eselect.in: make shellcheck happy Signed-off-by: Thomas Deutschmann gentoo.org> rust.eselect.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rust.eselect.in b/rust.eselect.in index 1b33280..c3ee046 100644 --- a/rust.eselect.in +++ b/rust.eselect.in @@ -215,7 +215,7 @@ describe_cleanup() { } do_cleanup() { - [[ -z ${@} ]] || die -q "This function does not expect any arguments" + [[ -z ${*} ]] || die -q "This function does not expect any arguments" # Do we need to clean up? local missing_symlinks=( $(find_missing_broken_symlinks) ) @@ -283,7 +283,7 @@ describe_show() { } do_show() { - [[ -z "${@}" ]] || die -q "Too many parameters" + [[ -z "${*}" ]] || die -q "Too many parameters" write_list_start "Current Rust implementation:" local targets=( $(find_targets) ) @@ -308,7 +308,7 @@ describe_update_options() { do_update() { local if_unset="0" - while [[ $# > 0 ]]; do + while [[ $# -gt 0 ]]; do case "$1" in --if-unset) if_unset="1"