Update install.sh

This commit is contained in:
Kroese 2025-10-21 19:56:59 +02:00 committed by GitHub
parent 11078c6eec
commit 96813876f3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -155,7 +155,10 @@ install() {
esac
rm -f "$dest"
makeDir "$STORAGE"
if ! makeDir "$STORAGE"; then
error "Failed to create directory \"$STORAGE\" !" && return 1
fi
find "$STORAGE" -maxdepth 1 -type f \( -iname '*.rom' -or -iname '*.vars' \) -delete
find "$STORAGE" -maxdepth 1 -type f \( -iname 'data.*' -or -iname 'macos.*' \) -delete