From 6bc4c6202a3df869dbb4f3eac9fae76085035ca7 Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Sat, 9 Oct 2021 15:41:53 +0100 Subject: [PATCH] Make shellcheck happy --- quickemu | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/quickemu b/quickemu index c99eaed..47baa1e 100755 --- a/quickemu +++ b/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