Skip to content

Commit 1aab42d

Browse files
committed
fix
1 parent daa25a6 commit 1aab42d

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

apply_configuration.py

+7-2
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,14 @@ def _main() -> None:
8686

8787
# Initialize the repo anew.
8888
subprocess.run(["git", "init", "-b", "main"], check=True, capture_output=True)
89-
subprocess.run(["git", "add", "."], check=True)
89+
subprocess.run(["git", "add", "."], check=True, capture_output=True)
9090

9191
# Check if the remote already exists (if this script is being run twice).
9292
# This can happen if the user makes a mistake in their GitHub username.
9393
ret = subprocess.run(
9494
["git", "remote", "get-url", "origin"],
9595
check=False,
96+
capture_output=True,
9697
)
9798
# Remote already exists, so set the URL.
9899
if ret.returncode == 0:
@@ -126,7 +127,11 @@ def _main() -> None:
126127
)
127128

128129
# Rename the package repo.
129-
subprocess.run(["mv", "src/python_starter", f"src/{package_name}"], check=True)
130+
subprocess.run(
131+
["mv", "src/python_starter", f"src/{package_name}"],
132+
check=True,
133+
capture_output=True,
134+
)
130135

131136
# Report succcess.
132137
print("Configuration applied successfully.")

0 commit comments

Comments
 (0)