mirror of
https://github.com/dockur/windows.git
synced 2025-10-29 20:25:49 +00:00
fix: Shellcheck
This commit is contained in:
parent
6bcd5e917f
commit
2b9fb3e7c8
1 changed files with 2 additions and 2 deletions
|
|
@ -176,14 +176,14 @@ abortInstall() {
|
||||||
|
|
||||||
detectCustom() {
|
detectCustom() {
|
||||||
|
|
||||||
local file
|
local file base
|
||||||
CUSTOM=""
|
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")
|
base=$(basename "$VERSION")
|
||||||
file="$STORAGE/$base"
|
file="$STORAGE/$base"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue