]> wimlib.net Git - wimlib/blobdiff - programs/mkwinpeimg.in
Use "EXIT" instead of "exit" in bash trap statements
[wimlib] / programs / mkwinpeimg.in
index ea0396ebc91952a56281e96fde162ef42936c3eb..f95e8e96090b47bdcefffaa77f2d3b807b7831e4 100755 (executable)
@@ -528,7 +528,7 @@ if [ -n "$start_script" -o -n "$overlay" -o -n "$remove_setup" ]; then
        modify_wim=yes
 fi
 check_needed_programs
-trap cleanup exit
+trap cleanup EXIT
 
 if [ $make != wim ]; then
        mkdir -p "$tmp_dir"/{boot,sources}