Update install.sh
This commit is contained in:
parent
0638aed46d
commit
144752a212
1 changed files with 16 additions and 20 deletions
|
|
@ -269,16 +269,16 @@ downloadImage() {
|
||||||
|
|
||||||
local iso="$1"
|
local iso="$1"
|
||||||
local version="$2"
|
local version="$2"
|
||||||
local url=""
|
|
||||||
local tried="n"
|
local tried="n"
|
||||||
local rc desc
|
local url rc desc
|
||||||
|
|
||||||
if [[ "${version,,}" == "http"* ]]; then
|
if [[ "${version,,}" == "http"* ]]; then
|
||||||
|
|
||||||
url="$version"
|
|
||||||
desc=$(getName "$BASE" "$BASE")
|
desc=$(getName "$BASE" "$BASE")
|
||||||
|
downloadFile "$iso" "$version" "$desc" && return 0
|
||||||
|
return 1
|
||||||
|
|
||||||
else
|
fi
|
||||||
|
|
||||||
if ! validVersion "$version"; then
|
if ! validVersion "$version"; then
|
||||||
error "Invalid VERSION value: $version" && return 1
|
error "Invalid VERSION value: $version" && return 1
|
||||||
|
|
@ -289,17 +289,13 @@ downloadImage() {
|
||||||
if isESD "$version"; then
|
if isESD "$version"; then
|
||||||
|
|
||||||
tried="y"
|
tried="y"
|
||||||
getESD "$TMP/esd" "$version" && url="$ESD_URL"
|
|
||||||
|
|
||||||
fi
|
if getESD "$TMP/esd" "$version"; then
|
||||||
|
downloadFile "$iso" "$ESD_URL" "$desc" && return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "$url" ]; then
|
|
||||||
downloadFile "$iso" "$url" "$desc" && return 0
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[[ "${version,,}" == "http"* ]] && return 1
|
|
||||||
|
|
||||||
ISO="$TMP/$BASE"
|
ISO="$TMP/$BASE"
|
||||||
iso="$ISO"
|
iso="$ISO"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue