feat: Create subfolder only after version is checked (#296)

This commit is contained in:
Kroese 2025-09-15 17:58:15 +02:00 committed by GitHub
parent 827f458cae
commit f15a2d6ae5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -137,6 +137,7 @@ download() {
esac
rm -f "$dest"
mkdir -p "$STORAGE"
if [ -f "/boot.dmg" ]; then
cp "/boot.dmg" "$dest"
@ -233,7 +234,6 @@ fi
if [ ! -f "$BASE_IMG" ] || [ ! -s "$BASE_IMG" ]; then
STORAGE="$STORAGE/${VERSION,,}"
mkdir -p "$STORAGE"
BASE_IMG="$STORAGE/base.dmg"
if [ ! -f "$BASE_IMG" ] || [ ! -s "$BASE_IMG" ]; then