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 @@ (define-public vpnc-scripts
(for-each (lambda (script)
(substitute* script
(("^PATH=.*") "")
(("(/usr|)/s?bin/") "")
(("/usr/s?bin/") "")
(("\\[ +-x +([^]]+) +\\]" _ command)
(string-append "command -v >/dev/null 2>&1 "
command))))