diff options
| author | Rafael Kitover <rkitover@gmail.com> | 2023-12-22 14:40:13 +0000 |
|---|---|---|
| committer | Rafael Kitover <rkitover@gmail.com> | 2023-12-22 14:40:13 +0000 |
| commit | f81fbc2bf78af3384dc435fdfb2e87c3a01ca047 (patch) | |
| tree | dc7c12c6022433c29a81d948ce7a72fdf7fb4c45 /doc | |
| parent | 4b9b83d5a92e8c1fbfd8eb27eda375908c11ec4d (diff) | |
darwin-rebuild: fix sudo invocation on High Sierra
The version of sudo on macOS 10.13 High Sierra does not support the
`--preserve-env=LIST` option syntax, which is used here to preserve
PATH.
Override sudo with a shell function that checks for the availability of
this option syntax, and do not pass PATH otherwise.
Also move the prefix env command in the sudo invocations into the new
sudo function.
Signed-off-by: Rafael Kitover <rkitover@gmail.com>
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions
