Skip to content

Commit 6d2be02

Browse files
committed
Error on tag not removed
1 parent 0958763 commit 6d2be02

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

res/firmware.nsh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ if "%2" == "bios" then
5454
# meset reboots automatically
5555
if exist meset.tag then
5656
rm meset.tag
57+
if exist meset.tag then
58+
echo "failed to remove meset.tag"
59+
exit 1
60+
endif
5761
else
5862
echo > meset.tag
5963
if not exist meset.tag then
@@ -83,6 +87,10 @@ if "%2" == "bios" then
8387
if exist uefiflash.efi then
8488
if exist uefiflash.tag then
8589
rm uefiflash.tag
90+
if exist uefiflash.tag then
91+
echo "failed to remove uefiflash.tag"
92+
exit 1
93+
endif
8694
exit 0
8795
else
8896
echo > uefiflash.tag
@@ -100,6 +108,10 @@ if "%2" == "bios" then
100108
if exist iflashv.efi then
101109
if exist iflashv.tag then
102110
rm iflashv.tag
111+
if exist iflashv.tag then
112+
echo "failed to remove iflashv.tag"
113+
exit 1
114+
endif
103115
exit 0
104116
else
105117
# Set DMI information if possible and exit
@@ -145,6 +157,10 @@ if "%2" == "ec" then
145157
if "%3" == "tag" then
146158
if exist ec.tag then
147159
rm ec.tag
160+
if exist ec.tag then
161+
echo "failed to remove ec.tag"
162+
exit 1
163+
endif
148164
else
149165
echo > ec.tag
150166
if not exist ec.tag then

0 commit comments

Comments
 (0)