mirror of
https://github.com/oSoWoSo/DistroHopper.git
synced 2024-08-14 22:46:53 +00:00
Make shellcheck happy
This commit is contained in:
parent
4afaf9b21d
commit
6bc4c6202a
1 changed files with 3 additions and 2 deletions
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…
Add table
Add a link
Reference in a new issue