fix: Shellcheck

This commit is contained in:
Kroese 2024-05-23 00:15:29 +02:00 committed by GitHub
parent 6bcd5e917f
commit 2b9fb3e7c8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -176,14 +176,14 @@ abortInstall() {
detectCustom() {
local file
local file base
CUSTOM=""
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)
if [ ! -s "$file" ] && [[ "${VERSION,,}" != "http"* ]]; then
local base=$(basename "$VERSION")
base=$(basename "$VERSION")
file="$STORAGE/$base"
fi