Minor code clean up

This commit is contained in:
Martin Wimpress 2022-02-23 03:33:32 +00:00
parent 85cb9251a0
commit 921d06e025
No known key found for this signature in database
GPG Key ID: 61DF940515E06DA3
2 changed files with 5 additions and 6 deletions

View File

@ -1023,8 +1023,8 @@ function shortcut_create {
local dirname="${HOME}/.local/share/applications" local dirname="${HOME}/.local/share/applications"
local filename="${HOME}/.local/share/applications/${VMNAME}.desktop" local filename="${HOME}/.local/share/applications/${VMNAME}.desktop"
if [ ! -d ${dirname} ]; then if [ ! -d "${dirname}" ]; then
mkdir -p ${dirname} mkdir -p "${dirname}"
fi fi
cat << EOF > "${filename}" cat << EOF > "${filename}"
[Desktop Entry] [Desktop Entry]

View File

@ -1770,8 +1770,7 @@ create_vm() {
trap cleanup EXIT trap cleanup EXIT
if ((BASH_VERSINFO[0] < 4)) if ((BASH_VERSINFO[0] < 4)); then
then
echo "Sorry, you need bash 4.0 or newer to run this script." echo "Sorry, you need bash 4.0 or newer to run this script."
exit 1 exit 1
fi fi