Skip to content

Commit 8a1c977

Browse files
authored
Merge pull request #3 from star7js/pixeebot/drip-2024-01-16-pixee-python/subprocess-shell-false
Use `shell=False` in `subprocess` Function Calls
2 parents 1550b71 + a338427 commit 8a1c977

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python3/hangover.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def get_log_path(filename):
2222

2323
def sh(command):
2424
""" Execute a shell command and return the output. """
25-
return subprocess.check_output(command, shell=True)
25+
return subprocess.check_output(command, shell=False)
2626

2727

2828
# Load environment variables and log file path

0 commit comments

Comments
 (0)