From 1c421e8dfbcdb754e67406cde9dbf302ec8a8a69 Mon Sep 17 00:00:00 2001 From: Andrew Sazonov Date: Mon, 22 Jul 2024 14:04:24 +0200 Subject: [PATCH] Fix suppress the error message command --- scripts.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts.py b/scripts.py index a09b6c9..10fdec5 100644 --- a/scripts.py +++ b/scripts.py @@ -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)