Unverified Commit f15a2d6a authored by Kroese's avatar Kroese Committed by GitHub
Browse files

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

parent 827f458c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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