mirror of
https://github.com/dockur/windows.git
synced 2025-10-29 20:25:49 +00:00
Update install.sh
This commit is contained in:
parent
e58f4c432c
commit
e62d790f99
1 changed files with 2 additions and 1 deletions
|
|
@ -172,7 +172,8 @@ detectCustom() {
|
||||||
if [[ "${VERSION,,}" != "http"* ]]; then
|
if [[ "${VERSION,,}" != "http"* ]]; then
|
||||||
file="${VERSION/\/storage\//}"
|
file="${VERSION/\/storage\//}"
|
||||||
[[ "$file" == "."* ]] && file="${file:1}"
|
[[ "$file" == "."* ]] && file="${file:1}"
|
||||||
CUSTOM=$(find "$STORAGE" -maxdepth 1 -type f -iname "$file" -printf "%f\n" | head -n 1)
|
[[ "$file" == *"/"* ]] && file=""
|
||||||
|
[ -n "$file" ] && CUSTOM=$(find "$STORAGE" -maxdepth 1 -type f -iname "$file" -printf "%f\n" | head -n 1)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ -z "$CUSTOM" ] && CUSTOM=$(find "$STORAGE" -maxdepth 1 -type f -iname custom.iso -printf "%f\n" | head -n 1)
|
[ -z "$CUSTOM" ] && CUSTOM=$(find "$STORAGE" -maxdepth 1 -type f -iname custom.iso -printf "%f\n" | head -n 1)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue