Skip to content

Commit

Permalink
Fix suppress the error message command
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewSazonov committed Jul 22, 2024
1 parent d9238c4 commit 1c421e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -964,9 +964,10 @@ def copy_built_to_pycfml_dist():
lines = []
msg = _echo_msg(f"Copying built {project_name} shared objects / dynamic libs to '{package_relpath}'")
lines.append(msg)
from_path = os.path.join(build_abspath, f'*.{shared_lib_ext} || :') # allows to suppress the error message if no files are found
from_path = os.path.join(build_abspath, f'*.{shared_lib_ext}')
to_path = package_abspath
cmd = f'cp {from_path} {to_path}'
cmd = cmd + ' || true' # allows to suppress the error message if no files are found
lines.append(cmd)
script_name = f'{sys._getframe().f_code.co_name}.sh'
_write_lines_to_file(lines, script_name)
Expand Down

0 comments on commit 1c421e8

Please sign in to comment.