mirror of
https://github.com/dockur/macos.git
synced 2026-03-11 08:34:24 +00:00
feat: Create subfolder only after version is checked (#296)
This commit is contained in:
parent
827f458cae
commit
f15a2d6ae5
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue