Skip to content

Commit

Permalink
FIX: quoting journalnames
Browse files Browse the repository at this point in the history
  • Loading branch information
tcpan committed Oct 22, 2024
1 parent 7adfe73 commit 2fa7d71
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions chorus_upload/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,13 +257,20 @@ def _write_files(file_list: dict, upload_datetime: str, filename : str, **kwargs
# check to see if cloud_journal is a cloud path
if not cloud_journal.startswith("az://"):
local_journal = cloud_journal
f.write(set_var + "local_journal=\"" + local_journal + "\"" + eol)
if is_windows:
f.write(set_var + "\"local_journal=" + local_journal + "\"" + eol)
else:
f.write(set_var + "local_journal=\"" + local_journal + "\"" + eol)
else:

f.write(comment + " Checkout the journal" + eol)
f.write(set_var + "local_journal=\"" + local_journal + "\"" + eol)
f.write(set_var + "cloud_journal=\"" + cloud_journal_path + "\"" + eol)

if is_windows:
f.write(set_var + "\"local_journal=" + local_journal + "\"" + eol)
f.write(set_var + "\"cloud_journal=" + cloud_journal_path + "\"" + eol)
else:
f.write(set_var + "local_journal=\"" + local_journal + "\"" + eol)
f.write(set_var + "cloud_journal=\"" + cloud_journal_path + "\"" + eol)

if (journal_transport == "builtin"):
f.write(testme + "python chorus_upload -c " + config_fn +
" journal checkout --local-journal \"" + var_start+"local_journal"+var_end + "\"" + testme_end + eol)
Expand Down

0 comments on commit 2fa7d71

Please sign in to comment.