Skip to content

Commit

Permalink
Unquote filename
Browse files Browse the repository at this point in the history
Signed-off-by: Audrow Nash <[email protected]>
  • Loading branch information
paudrow committed Jun 1, 2022
1 parent 9c36758 commit 11e0e70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ros2_batch_job/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ def need_package_from_pipy(pkg_name):
os.makedirs(args.sourcespace)
for filename in repos_filenames:
job.run(vcs_cmd + ['import', '"%s"' % args.sourcespace, '--force', '--retry', '5',
'--input', f"'{filename}'"], shell=True)
'--input', filename], shell=True)
print('# END SUBSECTION')

if args.test_branch is not None:
Expand Down Expand Up @@ -794,7 +794,7 @@ def need_package_from_pipy(pkg_name):
def _fetch_repos_file(url, filename, job):
"""Use curl to fetch a repos file and display the contents."""

job.run(['curl', '-skL', f"'{url}'", '-o', f"'{filename}'"])
job.run(['curl', '-skL', f"'{url}'", '-o', filename])
log("@{bf}==>@| Contents of `%s`:" % filename)
with open(filename, 'r') as f:
print(f.read())
Expand Down

0 comments on commit 11e0e70

Please sign in to comment.