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 5b14246 commit 5cc08f6
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/reset.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,13 @@ fi

# Check folder

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

if [ ! -d "$STORAGE" ]; then
error "Storage folder ($STORAGE) not found!" && exit 13
if [[ "$COMMIT" != [Nn]* ]]; then
STORAGE="/local"
mkdir -p "$STORAGE"
else
if [ ! -d "$STORAGE" ]; then
error "Storage folder ($STORAGE) not found!" && exit 13
fi
fi

# Read memory
Expand Down

0 comments on commit 5cc08f6

Please sign in to comment.