From 7673ae4ac78fb271819170a12d7d83c2e4fb3cc6 Mon Sep 17 00:00:00 2001 From: Kroese Date: Mon, 20 Nov 2023 13:22:40 +0100 Subject: [PATCH] fix: Boot file --- src/install.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/install.sh b/src/install.sh index e01bf9c..3230248 100644 --- a/src/install.sh +++ b/src/install.sh @@ -1,7 +1,8 @@ #!/usr/bin/env bash set -Eeuo pipefail -[ -f "$STORAGE/boot.img" ] && return 0 +FILE="$STORAGE/boot.img" +[ -f "$FILE" ] && return 0 TMP="/boot.img" rm -f "$TMP" @@ -28,8 +29,6 @@ if ((SIZE<100000)); then error "Invalid ISO file: Size is smaller than 100 KB" && exit 62 fi -FILE="$STORAGE/boot.img" - mv -f "$TMP" "$FILE" { set +x; } 2>/dev/null