clipmenu: Use last-arg syntax that keeps shellcheck happy
This commit is contained in:
parent
7a00f8cf17
commit
f26813c184
8
clipmenu
8
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=$(
|
||||
|
|
Loading…
Reference in a new issue