diff --git a/quickemu b/quickemu index 398b6d6..9a1e0b0 100755 --- a/quickemu +++ b/quickemu @@ -1023,8 +1023,8 @@ function shortcut_create { local dirname="${HOME}/.local/share/applications" local filename="${HOME}/.local/share/applications/${VMNAME}.desktop" - if [ ! -d ${dirname} ]; then - mkdir -p ${dirname} + if [ ! -d "${dirname}" ]; then + mkdir -p "${dirname}" fi cat << EOF > "${filename}" [Desktop Entry] diff --git a/quickget b/quickget index 6372241..2868595 100755 --- a/quickget +++ b/quickget @@ -1770,10 +1770,9 @@ create_vm() { trap cleanup EXIT -if ((BASH_VERSINFO[0] < 4)) -then - echo "Sorry, you need bash 4.0 or newer to run this script." - exit 1 +if ((BASH_VERSINFO[0] < 4)); then + echo "Sorry, you need bash 4.0 or newer to run this script." + exit 1 fi LANGS=()