Skip to content

Commit

Permalink
Add debugging
Browse files Browse the repository at this point in the history
When x is set to True, we will print all things that are subprocess.run

Signed-off-by: Eric Curtin <ecurtin@redhat.com>
  • Loading branch information
ericcurtin committed Jul 26, 2024
1 parent 69afa06 commit 1ab9a67
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ramalama
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import subprocess
import json
import hashlib

x = False

def verify_checksum(filename):
"""
Expand Down Expand Up @@ -45,6 +46,9 @@ def verify_checksum(filename):


def run_command(args):
if x:
print(*args)

try:
subprocess.run(args, check=True)
except subprocess.CalledProcessError as e:
Expand Down

0 comments on commit 1ab9a67

Please sign in to comment.