mirror of
https://github.com/dockur/windows.git
synced 2025-10-28 11:45:50 +00:00
Update install.sh
This commit is contained in:
parent
de13788c2f
commit
29aed10d1e
1 changed files with 6 additions and 4 deletions
|
|
@ -200,14 +200,16 @@ abortInstall() {
|
||||||
detectCustom() {
|
detectCustom() {
|
||||||
|
|
||||||
local file base
|
local file base
|
||||||
|
local fname="custom.iso"
|
||||||
|
|
||||||
CUSTOM=""
|
CUSTOM=""
|
||||||
|
|
||||||
if [ -d "/custom.iso" ]; then
|
if [ -d "/$fname" ]; then
|
||||||
error "The file /custom.iso has an invalid path!" && return 1
|
error "The file /$fname has an invalid path!" && return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
file=$(find / -maxdepth 1 -type f -iname custom.iso | head -n 1)
|
file=$(find / -maxdepth 1 -type f -iname "$fname" | 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 "$fname" | head -n 1)
|
||||||
|
|
||||||
if [ ! -s "$file" ] && [[ "${VERSION,,}" != "http"* ]]; then
|
if [ ! -s "$file" ] && [[ "${VERSION,,}" != "http"* ]]; then
|
||||||
base=$(basename "$VERSION")
|
base=$(basename "$VERSION")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue