mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-12-14 22:30:33 +08:00
feat: New extraction method
This commit is contained in:
@@ -31,14 +31,11 @@ if [ -n "$URL" ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if [[ "${URL,,}" != "http"* ]] && [[ "${URL,,}" != "file:"* ]] ; then
|
if [[ "${URL,,}" != "http"* ]] && [[ "${URL,,}" != "file:"* ]] ; then
|
||||||
URL="file://$STORAGE/$BASE.pat"
|
|
||||||
if [ ! -s "$STORAGE/$BASE.pat" ]; then
|
|
||||||
URL="file:///$BASE.pat"
|
URL="file:///$BASE.pat"
|
||||||
if [ ! -s "/$BASE.pat" ]; then
|
if [ ! -s "/$BASE.pat" ]; then
|
||||||
error "File '$BASE.pat' does not exist!" && exit 65
|
error "File '$BASE.pat' does not exist!" && exit 65
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -s "$STORAGE/$BASE.boot.img" ]] && [[ -s "$STORAGE/$BASE.system.img" ]]; then
|
if [[ -s "$STORAGE/$BASE.boot.img" ]] && [[ -s "$STORAGE/$BASE.system.img" ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user