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

feat: Cleanup old files before install (#816)

parent 0dca290b
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -337,6 +337,10 @@ if [[ "${BOOT,,}" != "http"* ]]; then
fi

mkdir -p "$STORAGE"

find "$STORAGE" -maxdepth 1 -type f \( -iname '*.rom' -or -iname '*.vars' \) -delete
find "$STORAGE" -maxdepth 1 -type f \( -iname 'data.*' -or -iname 'qemu.*' \) -delete

base=$(getBase "$BOOT")

if ! downloadFile "$BOOT" "$base" "$name"; then