feat: Support committing to image

This commit is contained in:
Kroese 2024-11-13 00:24:42 +01:00 committed by GitHub
parent 5b14246478
commit 5cc08f6dc3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -81,10 +81,13 @@ fi
# Check folder # Check folder
[[ "$COMMIT" != [Nn]* ]] && STORAGE="/local" if [[ "$COMMIT" != [Nn]* ]]; then
STORAGE="/local"
if [ ! -d "$STORAGE" ]; then mkdir -p "$STORAGE"
error "Storage folder ($STORAGE) not found!" && exit 13 else
if [ ! -d "$STORAGE" ]; then
error "Storage folder ($STORAGE) not found!" && exit 13
fi
fi fi
# Read memory # Read memory