me
/
guix
Archived
1
0
Fork 0

gnu: vpnc-scripts: Tighten substitution regex.

* gnu/packages/vpn.scm (vpnc-scripts)[arguments]: Do not substitute file names
starting with /bin to preserve /bin/sh shebangs.
master
Marius Bakke 2020-03-06 11:13:12 +01:00
parent c67ee58c72
commit 92594b2e0f
No known key found for this signature in database
GPG Key ID: A2A06DF2A33A54FA
1 changed files with 1 additions and 1 deletions

View File

@ -152,7 +152,7 @@ Only \"Universal TUN/TAP device driver support\" is needed in the kernel.")
(for-each (lambda (script)
(substitute* script
(("^PATH=.*") "")
(("(/usr|)/s?bin/") "")
(("/usr/s?bin/") "")
(("\\[ +-x +([^]]+) +\\]" _ command)
(string-append "command -v >/dev/null 2>&1 "
command))))