Skip to content

Commit

Permalink
Implemented single quoting on Unix
Browse files Browse the repository at this point in the history
  • Loading branch information
jlstevens committed Sep 25, 2023
1 parent 7d43220 commit b431f51
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion constructor/osxpkg.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ def move_script(src, dst, info, ensure_shebang=False, user_script_type=None):
custom_variables = info.get('script_env_variables', {})
data = fill_template(data, replace)

data = data.replace("_SCRIPT_ENV_VARIABLES_=''", '\n'.join([f'export {key}={value}' for key, value in custom_variables.items()]))
data = data.replace("_SCRIPT_ENV_VARIABLES_=''", '\n'.join([f"export {key}='{value}'" for key, value in custom_variables.items()]))


with open(dst, 'w') as fo:
Expand Down
2 changes: 1 addition & 1 deletion constructor/shar.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def get_header(conda_exec, tarball, info):
data = fill_template(data, replace)

data = data.replace("_SCRIPT_ENV_VARIABLES_=''", '\n'.join(
[f'export {key}={value}' for key, value in custom_variables.items()]))
[f"export {key}='{value}'" for key, value in custom_variables.items()]))
return data


Expand Down

0 comments on commit b431f51

Please sign in to comment.