mirror of
https://git.adityakumar.xyz/betterlockscreen-openrc.git
synced 2024-11-21 22:52:52 +00:00
Merge pull request #326 from betterlockscreen/fix_shellcheck
Fix Shellcheck by also quoting the inner variable
This commit is contained in:
commit
947fea2305
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