clipmenu: Use last-arg syntax that keeps shellcheck happy

This commit is contained in:
Chris Down 2020-03-24 13:49:44 +00:00
parent 7a00f8cf17
commit f26813c184

View file

@ -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=$(