Merge pull request #326 from betterlockscreen/fix_shellcheck

Fix Shellcheck by also quoting the inner variable
This commit is contained in:
Basti 2022-02-23 22:51:24 +01:00 committed by GitHub
commit 947fea2305
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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