mirror of
https://git.adityakumar.xyz/betterlockscreen-openrc.git
synced 2024-12-26 18:42:53 +00:00
Fix Shellcheck by also quoting the inner variable (reference: https://github-wiki-see.page/m/koalaman/shellcheck/wiki/SC2295)
This commit is contained in:
parent
273078050f
commit
321b3ebcea
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue