We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb1032a commit c0cf446Copy full SHA for c0cf446
initrd/bin/flash-gui.sh
@@ -43,9 +43,11 @@ while true; do
43
44
# is a .npf provided?
45
if [ -z "${ROM##*.npf}" ]; then
46
+ #preventive cleanup
47
+ rm -rf /tmp/verified_rom >/dev/null 2>&1 || true
48
# unzip to /tmp/verified_rom
- mkdir /tmp/verified_rom
- unzip $ROM -d /tmp/verified_rom
49
+ mkdir -p /tmp/verified_rom >/dev/null 2>&1 || true
50
+ unzip $ROM -d /tmp/verified_rom || die "Failed to unzip ROM file"
51
# check file integrity
52
if (cd /tmp/verified_rom/ && sha256sum -cs /tmp/verified_rom/sha256sum.txt); then
53
ROM="$(head -n1 /tmp/verified_rom/sha256sum.txt | cut -d ' ' -f 3)"
0 commit comments