Update install.sh

This commit is contained in:
Kroese 2024-01-22 20:37:15 +01:00 committed by GitHub
parent 7beac0d11e
commit d718daf4e6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -108,16 +108,17 @@ if [ -f "$STORAGE/$BASE" ]; then
if [[ "$MAGIC" == "16" ]]; then if [[ "$MAGIC" == "16" ]]; then
FOUND="N" if [[ "$MANUAL" = [Yy1]* ]]; then
[[ "$MANUAL" = [Yy1]* ]] && FOUND="Y" rm -rf "$TMP"
return 0
fi
if [[ "$FOUND" == "N" ]]; then FOUND="N"
if [ -f "$STORAGE/data.img" ] || [ -f "$STORAGE/data.qcow2" ]; then if [ -f "$STORAGE/data.img" ] || [ -f "$STORAGE/data.qcow2" ]; then
FOUND="Y" FOUND="Y"
else else
[ -b "${DEVICE:-}" ] && FOUND="Y" [ -b "${DEVICE:-}" ] && FOUND="Y"
fi fi
fi
if [[ "$FOUND" == "Y" ]]; then if [[ "$FOUND" == "Y" ]]; then
rm -rf "$TMP" rm -rf "$TMP"
@ -128,7 +129,7 @@ if [ -f "$STORAGE/$BASE" ]; then
EXTERNAL="Y" EXTERNAL="Y"
CUSTOM="$BASE" CUSTOM="$BASE"
MSG="ISO file '$BASE' needs to be prepared..." MSG="ISO file needs to be prepared..."
info "$MSG" && html "$MSG" info "$MSG" && html "$MSG"
fi fi