fix(shellcheck): get Public folder permissions in a shellcheck safe way
This commit is contained in:
parent
f3b475ec42
commit
cfa131fb9c
3
quickemu
3
quickemu
|
@ -1549,8 +1549,7 @@ function fileshare_param_check() {
|
|||
echo " - WARNING! Public directory: '${PUBLIC}' doesn't exist!"
|
||||
else
|
||||
PUBLIC_TAG="Public-${USER,,}"
|
||||
# shellcheck disable=SC2012
|
||||
PUBLIC_PERMS=$(ls -ld "${PUBLIC}" | cut -d' ' -f1)
|
||||
PUBLIC_PERMS=$(stat -c "%A" "${PUBLIC}")
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue