Commit 6678c37c authored by Guillaume G.'s avatar Guillaume G. Committed by Andrzej Puzdrowski
Browse files

imgtool: dumpinfo: Avoid exit and use return

parent 091af82e
Loading
Loading
Loading
Loading
+1 −1
Changes for scripts/imgtool/dumpinfo.py: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -251,7 +251,7 @@ def dump_imginfo(imgfile, outfile=None, silent=False):
    ###############################################################################

    if silent:
        sys.exit(0)
        return

    print("Printing content of signed image:", os.path.basename(imgfile), "\n")

+1 −0
Changes for scripts/imgtool/main.py: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -259,6 +259,7 @@ def verify(key, imgfile):
                    'of a signed image')
def dumpinfo(imgfile, outfile, silent):
    dump_imginfo(imgfile, outfile, silent)
    if not silent:
        print("dumpinfo has run successfully")