Skip to content

Commit

Permalink
fix: Boot file
Browse files Browse the repository at this point in the history
  • Loading branch information
kroese authored Nov 20, 2023
1 parent 5161d0f commit 7b7d843
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/install.sh
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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
Expand Down

0 comments on commit 7b7d843

Please sign in to comment.