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
e58f4c432c
commit
e62d790f99
1 changed files with 2 additions and 1 deletions
|
|
@ -172,7 +172,8 @@ detectCustom() {
|
|||
if [[ "${VERSION,,}" != "http"* ]]; then
|
||||
file="${VERSION/\/storage\//}"
|
||||
[[ "$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
|
||||
|
||||
[ -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