fix(quickget): resolve shellcheck SC2010 warnings

https://www.shellcheck.net/wiki/SC2010
This commit is contained in:
Martin Wimpress 2024-05-09 02:40:29 +01:00 committed by Martin Wimpress
parent a1417acc7a
commit eb08d5a6c6
1 changed files with 6 additions and 4 deletions

View File

@ -3395,13 +3395,15 @@ function create_vm() {
fi;;
freedos)
if [[ ${ISO} = *".zip"* ]]; then
unzip ${VM_PATH}/${ISO} -d ${VM_PATH}
ISO=$(ls ${VM_PATH} | grep -i '.iso')
unzip -qo "${VM_PATH}/${ISO}" -d "${VM_PATH}"
rm -f "${VM_PATH}/${ISO}"
ISO="$(ls -1 "${VM_PATH}/"*.iso)"
fi;;
reactos)
if [[ ${ISO} = *".zip"* ]]; then
unzip ${VM_PATH}/${ISO} -d ${VM_PATH}
ISO=$(ls ${VM_PATH} | grep -i '.iso' | grep -v '.zip')
unzip -qo "${VM_PATH}/${ISO}" -d "${VM_PATH}"
rm -f "${VM_PATH}/${ISO}"
ISO="$(ls -1 "${VM_PATH}/"*.iso)"
fi;;
esac
make_vm_config "${ISO}"