Skip to content

Commit

Permalink
feat: Support committing to image
Browse files Browse the repository at this point in the history
  • Loading branch information
kroese authored Nov 12, 2024
1 parent 91be01c commit 5b14246
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/reset.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ echo "❯ For support visit $SUPPORT"

: "${BOOT:=""}" # URL of the ISO file
: "${DEBUG:="N"}" # Disable debugging
: "${COMMIT:="N"}" # Commit to image
: "${MACHINE:="virt"}" # Machine selection
: "${ALLOCATE:=""}" # Preallocate diskspace
: "${ARGUMENTS:=""}" # Extra QEMU parameters
Expand Down Expand Up @@ -80,6 +81,8 @@ fi

# Check folder

[[ "$COMMIT" != [Nn]* ]] && STORAGE="/local"

if [ ! -d "$STORAGE" ]; then
error "Storage folder ($STORAGE) not found!" && exit 13
fi
Expand Down

0 comments on commit 5b14246

Please sign in to comment.