This commit is contained in:
Henrik Lissner 2020-08-19 12:08:16 -04:00
parent 4bc70a8537
commit 9b991fc29f
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
3 changed files with 4 additions and 3 deletions

View file

@ -175,7 +175,8 @@ COMMAND, and passes ARGS to it."
(coding-system-for-read 'utf-8)
(delimiter "__EOF__"))
(with-temp-file post-script
(insert (save-match-data
(insert "#!/usr/bin/env sh\n"
(save-match-data
(cl-loop for env in process-environment
if (string-match "^\\([a-zA-Z0-9_]+\\)=\\(.+\\)$" env)
concat (format "%s=%s \\\n"