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