mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
utils: Change 'patch-shebang' to not try to patch Rust source files.
* guix/build/utils.scm (patch-shebang): Match only absolute paths.
This commit is contained in:
parent
1b2b7765a0
commit
88f8549449
1 changed files with 1 additions and 1 deletions
|
@ -894,7 +894,7 @@ (define (get-char* p)
|
|||
(x x)))
|
||||
|
||||
(define patch-shebang
|
||||
(let ((shebang-rx (make-regexp "^[[:blank:]]*([[:graph:]]+)[[:blank:]]*([[:graph:]]*)(.*)$")))
|
||||
(let ((shebang-rx (make-regexp "^[[:blank:]]*(/[[:graph:]]+)[[:blank:]]*([[:graph:]]*)(.*)$")))
|
||||
(lambda* (file
|
||||
#:optional
|
||||
(path (search-path-as-string->list (getenv "PATH")))
|
||||
|
|
Loading…
Reference in a new issue