feat: New extraction method

This commit is contained in:
Kroese 2025-03-26 09:18:54 +01:00 committed by GitHub
parent 4c1bc9c3d6
commit cd194c7e97
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -31,14 +31,11 @@ if [ -n "$URL" ]; then
fi
fi
if [[ "${URL,,}" != "http"* ]] && [[ "${URL,,}" != "file:"* ]] ; then
URL="file://$STORAGE/$BASE.pat"
if [ ! -s "$STORAGE/$BASE.pat" ]; then
URL="file:///$BASE.pat"
if [ ! -s "/$BASE.pat" ]; then
error "File '$BASE.pat' does not exist!" && exit 65
fi
fi
fi
fi
if [[ -s "$STORAGE/$BASE.boot.img" ]] && [[ -s "$STORAGE/$BASE.system.img" ]]; then