diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 82c8bc7..294d4ff 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -65,6 +65,7 @@ jobs: --compiler ${{ matrix.toolchain.exe }} --mode debug --bash-syntax + --enable-backslash-escapes - name: Print some build-specific variables shell: bash diff --git a/scripts.py b/scripts.py index 38499ce..b14abb0 100644 --- a/scripts.py +++ b/scripts.py @@ -11,9 +11,9 @@ global ARGS global CONFIG -MSG_COLOR = r'\033[0;32m' #'\\033[0;32m' # green -HEAD_COLOR = '\\033[1;34m' # bold blue -COLOR_OFF = r'\033[0m' #'\\033[0m' +MSG_COLOR = r'\033[0;32m' # green +HEAD_COLOR = r'\033[1;34m' # bold blue +COLOR_OFF = r'\033[0m' def _github_actions(): @@ -47,7 +47,7 @@ def _main_script_path(): def _echo_cmd(): if _enable_backslash_escapes(): - return 'echo' #'echo -e' + return 'echo -e' return 'echo' def _echo_msg(msg: str): @@ -126,9 +126,9 @@ def _write_lines_to_file(lines: list, name: str): with open(path, 'w') as file: for line in lines: if _bash_syntax(): - pass - #line = line.replace('\\', '/') # change path separators - #line = line.replace('/033', r'\\033') # fix colors + #pass + line = line.replace('\\', '/') # change path separators + line = line.replace('/033', r'\033') # fix colors file.write(line + '\n') _fix_file_permissions(path)