From b6301b6bd233a8ad755cc1b6c98333564a0a0274 Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Sun, 28 Apr 2024 19:51:42 +0900 Subject: [PATCH] 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. --- update.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update.py b/update.py index 473f5ca..36702b8 100755 --- a/update.py +++ b/update.py @@ -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 ( -- 2.49.0