diff options
author | 2020-04-19 03:20:41 +0200 | |
---|---|---|
committer | 2020-04-19 03:20:41 +0200 | |
commit | 190fdd480d33ef378167a15a8fb4136202445805 (patch) | |
tree | 8d721dac05b1eec03c379140860f6f68701639fe /rust.eselect.in | |
parent | bump version to 20200419 (diff) | |
download | eselect-rust-190fdd480d33ef378167a15a8fb4136202445805.tar.gz eselect-rust-190fdd480d33ef378167a15a8fb4136202445805.tar.bz2 eselect-rust-190fdd480d33ef378167a15a8fb4136202445805.zip |
rust.eselect.in: make shellcheck happyeselect-rust-20200419
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'rust.eselect.in')
-rw-r--r-- | rust.eselect.in | 6 |
1 files 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" |