3
4
Fork 0
mirror of git://git.savannah.gnu.org/guix.git synced 2023-12-14 03:33:07 +01:00

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.
This commit is contained in:
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

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))))