feat: Support committing to image
This commit is contained in:
parent
5b14246478
commit
5cc08f6dc3
1 changed files with 7 additions and 4 deletions
11
src/reset.sh
11
src/reset.sh
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue