Make shellcheck happy
This commit is contained in:
parent
4afaf9b21d
commit
6bc4c6202a
5
quickemu
5
quickemu
@ -860,12 +860,13 @@ readonly VERSION="2.2.4"
|
||||
# sharing via 9P, spice-webdavd and Samba. This path is not configurable.
|
||||
if command -v xdg-user-dir &>/dev/null; then
|
||||
PUBLIC=$(xdg-user-dir PUBLICSHARE)
|
||||
if [ "${PUBLIC%/}" != ${HOME} ]; then
|
||||
if [ "${PUBLIC%/}" != "${HOME}" ]; then
|
||||
if [ ! -d "${PUBLIC}" ]; then
|
||||
mkdir -p "${PUBLIC}"
|
||||
fi
|
||||
PUBLIC_TAG=$(basename ${PUBLIC})-${USER,,}
|
||||
PUBLIC_PERMS=$(ls -ld ${PUBLIC} | cut -d' ' -f1)
|
||||
# shellcheck disable=SC2012
|
||||
PUBLIC_PERMS=$(ls -ld "${PUBLIC}" | cut -d' ' -f1)
|
||||
else
|
||||
PUBLIC=""
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user