style: add braces around variable names

This commit is contained in:
Martin Wimpress 2024-05-07 00:26:55 +01:00 committed by Martin Wimpress
parent f44222ad6f
commit 7e12bac3e6
1 changed files with 3 additions and 3 deletions

View File

@ -2640,7 +2640,7 @@ function get_ubuntu() {
ISO=$(cut -d'*' -f2 <<<${DATA}) ISO=$(cut -d'*' -f2 <<<${DATA})
HASH=$(cut_1 <<<${DATA}) HASH=$(cut_1 <<<${DATA})
fi 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" echo "$(pretty_name $OS) ${RELEASE} is currently unavailable. Please select other OS/Release combination"
exit 1 exit 1
fi fi
@ -3391,7 +3391,7 @@ function create_vm() {
check_hash "${ISO}" "${HASH}" check_hash "${ISO}" "${HASH}"
fi fi
if [ ${OS} == "freedos" ] && [[ $ISO =~ ".zip" ]]; then if [ ${OS} == "freedos" ] && [[ ${ISO} =~ ".zip" ]]; then
unzip ${VM_PATH}/${ISO} -d ${VM_PATH} unzip ${VM_PATH}/${ISO} -d ${VM_PATH}
ISO=$(ls ${VM_PATH} | grep -i '.iso') ISO=$(ls ${VM_PATH} | grep -i '.iso')
fi fi
@ -3414,7 +3414,7 @@ function create_vm() {
ISO="${ISO/.img/}" ISO="${ISO/.img/}"
fi fi
if [ ${OS} == "reactos" ] && [[ $ISO =~ ".zip" ]]; then if [ ${OS} == "reactos" ] && [[ ${ISO} =~ ".zip" ]]; then
unzip ${VM_PATH}/${ISO} -d ${VM_PATH} unzip ${VM_PATH}/${ISO} -d ${VM_PATH}
ISO=$(ls ${VM_PATH} | grep -i '.iso' | grep -v '.zip') ISO=$(ls ${VM_PATH} | grep -i '.iso' | grep -v '.zip')
fi fi