From 96813876f37350f7368e6a65e4b69f6440bb2ed0 Mon Sep 17 00:00:00 2001 From: Kroese Date: Tue, 21 Oct 2025 19:56:59 +0200 Subject: [PATCH] Update install.sh --- src/install.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/install.sh b/src/install.sh index 89be17f..37d00ad 100644 --- a/src/install.sh +++ b/src/install.sh @@ -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