Fix unescaped backslash in string

String requires literal backslashes in it for bash-expansion to work
properly. The expansion in question removes "/usr/local/bin" from "PATH"
when sccache is invoked to prevent unwanted recursion.
This commit is contained in:
Stephen Seo 2024-04-28 19:51:42 +09:00
parent b9b0cf3399
commit b6301b6bd2

View file

@ -1167,7 +1167,7 @@ def setup_sccache(chroot: str):
"""Sets up sccache for the chroot."""
sccache_script = """#!/usr/bin/env sh
export PATH=${PATH/:\/usr\/local\/bin/}
export PATH=${PATH/:\\/usr\\/local\\/bin/}
/usr/bin/env sccache $(basename "$0") "$@"
"""
if (