]> git.seodisparate.com - AnotherAURHelper/commitdiff
Fix unescaped backslash in string
authorStephen Seo <seo.disparate@gmail.com>
Sun, 28 Apr 2024 10:51:42 +0000 (19:51 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Sun, 28 Apr 2024 10:51:42 +0000 (19:51 +0900)
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

index 473f5ca6e235296fbd91db97e1141e86de4650b0..36702b83884b7d5cc310165a02edd220b528aaf9 100755 (executable)
--- 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 (