clipmenu

Simple clipboard management using dmenu
git clone https://git.sinitax.com/cdown/clipmenu
Log | Files | Refs | README | LICENSE | sfeed.txt

commit f26813c184d80627d47e9a79edbddd046c8aa14b
parent 7a00f8cf17c4a1c82a967205cc3534c502a4c9aa
Author: Chris Down <chris@chrisdown.name>
Date:   Tue, 24 Mar 2020 13:49:44 +0000

clipmenu: Use last-arg syntax that keeps shellcheck happy

Diffstat:
Mclipmenu | 8+++-----
1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/clipmenu b/clipmenu @@ -35,13 +35,11 @@ list_clips() { } if [[ "$CM_LAUNCHER" == rofi-script ]]; then - if ! (( $# )); then + if (( $# )); then + chosen_line="${!#}" + else list_clips exit - else - # https://github.com/koalaman/shellcheck/issues/1141 - # shellcheck disable=SC2124 - chosen_line="${@: -1}" fi else chosen_line=$(