Fix Shellcheck by also quoting the inner variable (reference: https://github-wiki-see.page/m/koalaman/shellcheck/wiki/SC2295)

This commit is contained in:
Sebastian Sellmeier 2022-02-22 21:27:01 +01:00
parent 273078050f
commit 321b3ebcea
No known key found for this signature in database
GPG key ID: 51E2BE0CCC826F98

View file

@ -606,8 +606,8 @@ update () {
local geometry="${dinfo[2]}" local geometry="${dinfo[2]}"
read -r -a cols <<< "${geometry//[x+-]/ }" read -r -a cols <<< "${geometry//[x+-]/ }"
local position="${geometry#*${cols[1]}}" local position="${geometry#*"${cols[1]}"}"
local resolution="${geometry%${position}*}" local resolution="${geometry%"${position}"*}"
if [[ $id -eq "$display_on" ]] || [[ "$display_on" -eq 0 ]]; then if [[ $id -eq "$display_on" ]] || [[ "$display_on" -eq 0 ]]; then