Skip to content

Commit 99b4f99

Browse files
Sandbox Process Creation (#7) (#10)
Co-authored-by: pixeebot[bot] <104101892+pixeebot[bot]@users.noreply.github.com>
1 parent ef8aaaa commit 99b4f99

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/SfsClient/sfs-client/scripts/check-format.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import subprocess
88
import sys
99
import sysconfig
10+
from security import safe_command
1011

1112
script_dir = os.path.dirname(os.path.realpath(__file__))
1213
root_dir = os.path.join(script_dir, "..")
@@ -51,7 +52,7 @@
5152
unformatted_files.append(file)
5253
for file in cmake_files:
5354
# When the file is unformatted, cmake-format returns a non-zero exit code
54-
result = subprocess.run("{} {} --check".format(cmake_format, file), stderr=subprocess.DEVNULL, shell=True)
55+
result = safe_command.run(subprocess.run, "{} {} --check".format(cmake_format, file), stderr=subprocess.DEVNULL, shell=True)
5556
if result.returncode != 0:
5657
unformatted_files.append(file)
5758

0 commit comments

Comments
 (0)