sanebox: fix qoute error in linkCache array test

This commit is contained in:
Colin 2024-05-24 06:14:08 +00:00
parent 309797fe23
commit d25fb31767

View File

@ -297,7 +297,7 @@ readlinkOnce() {
local outVar=$1
local path=$2
local linkTarget=
if [ -v linkCache[$path] ]; then
if [ -v "linkCache[$path]" ]; then
linkTarget=${linkCache[$path]}
elif [ -L "$path" ]; then
# path is a link, but not in the cache