mirror of
https://github.com/dockur/windows.git
synced 2025-10-29 04:05:50 +00:00
Update install.sh
This commit is contained in:
parent
621206a040
commit
4841044e6d
1 changed files with 2 additions and 3 deletions
|
|
@ -188,17 +188,16 @@ abortInstall() {
|
||||||
detectCustom() {
|
detectCustom() {
|
||||||
|
|
||||||
local file
|
local file
|
||||||
|
CUSTOM=""
|
||||||
|
|
||||||
file=$(find / -maxdepth 1 -type f -iname custom.iso | head -n 1)
|
file=$(find / -maxdepth 1 -type f -iname custom.iso | head -n 1)
|
||||||
[ ! -s "$file" ] && file=$(find "$STORAGE" -maxdepth 1 -type f -iname custom.iso | head -n 1)
|
[ ! -s "$file" ] && file=$(find "$STORAGE" -maxdepth 1 -type f -iname custom.iso | head -n 1)
|
||||||
|
|
||||||
if [ ! -s "$file" ] && [[ "${VERSION,,}" != "http"* ]]; then
|
if [ ! -s "$file" ] && [[ "${VERSION,,}" != "http"* ]]; then
|
||||||
local base=$(basename "$VERSION")
|
local base=$(basename "$VERSION")
|
||||||
file=$(find "$STORAGE" -maxdepth 1 -type f -iname "$base" | head -n 1)
|
file="$STORAGE/$base"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
CUSTOM=""
|
|
||||||
|
|
||||||
if [ ! -f "$file" ] || [ ! -s "$file" ]; then
|
if [ ! -f "$file" ] || [ ! -s "$file" ]; then
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue