Skip to content

Commit

Permalink
style: add braces around variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
flexiondotorg committed May 6, 2024
1 parent 6485c45 commit 2e4b8aa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions quickget
Original file line number Diff line number Diff line change
Expand Up @@ -2640,7 +2640,7 @@ function get_ubuntu() {
ISO=$(cut -d'*' -f2 <<<${DATA})
HASH=$(cut_1 <<<${DATA})
fi
if [ -z $ISO ] || [ -z $HASH ]; then
if [ -z "${ISO}" ] || [ -z "${HASH}" ]; then
echo "$(pretty_name $OS) ${RELEASE} is currently unavailable. Please select other OS/Release combination"
exit 1
fi
Expand Down Expand Up @@ -3391,7 +3391,7 @@ function create_vm() {
check_hash "${ISO}" "${HASH}"
fi

if [ ${OS} == "freedos" ] && [[ $ISO =~ ".zip" ]]; then
if [ ${OS} == "freedos" ] && [[ ${ISO} =~ ".zip" ]]; then
unzip ${VM_PATH}/${ISO} -d ${VM_PATH}
ISO=$(ls ${VM_PATH} | grep -i '.iso')
fi
Expand All @@ -3414,7 +3414,7 @@ function create_vm() {
ISO="${ISO/.img/}"
fi

if [ ${OS} == "reactos" ] && [[ $ISO =~ ".zip" ]]; then
if [ ${OS} == "reactos" ] && [[ ${ISO} =~ ".zip" ]]; then
unzip ${VM_PATH}/${ISO} -d ${VM_PATH}
ISO=$(ls ${VM_PATH} | grep -i '.iso' | grep -v '.zip')
fi
Expand Down

0 comments on commit 2e4b8aa

Please sign in to comment.