[PR #14] [CLOSED] Add sed as a parameter variable in order to be able to specify the sed version that must be used. #661

Closed
opened 2025-12-29 01:28:20 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/dehydrated-io/dehydrated/pull/14
Author: @M-M-M-M
Created: 12/6/2015
Status: Closed

Base: masterHead: sed-parameter


📝 Commits (1)

  • edf46fd Add sed as a parameter variable in order to be able to specify the sed version that must be used.

📊 Changes

2 files changed (+10 additions, -5 deletions)

View changed files

📝 config.sh.example (+4 -0)
📝 letsencrypt.sh (+6 -5)

📄 Description

Add sed as a parameter variable in order to be able to specify the sed version that must be used.

The goal is to be able to specify another sed program as the one to be used must be the GNU sed (-r parameter is used).

For instance default sed program on OS X is not supporting this parameter and launching lets encrypt.sh is displaying following error:

sed: illegal option -- r
usage: sed script [-Ealn] [-i extension] [file ...]
sed [-Ealn] [-i extension] [-e script] ... [-f script_file] ... [file ...]

GNU sed can be installed from macport and its name is gsed.

So a simple SED=gsed in config.sh file is resolving this issue.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/dehydrated-io/dehydrated/pull/14 **Author:** [@M-M-M-M](https://github.com/M-M-M-M) **Created:** 12/6/2015 **Status:** ❌ Closed **Base:** `master` ← **Head:** `sed-parameter` --- ### 📝 Commits (1) - [`edf46fd`](https://github.com/dehydrated-io/dehydrated/commit/edf46fd465b39da63ff80f124917c80b731f54c9) Add sed as a parameter variable in order to be able to specify the sed version that must be used. ### 📊 Changes **2 files changed** (+10 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `config.sh.example` (+4 -0) 📝 `letsencrypt.sh` (+6 -5) </details> ### 📄 Description Add sed as a parameter variable in order to be able to specify the sed version that must be used. The goal is to be able to specify another sed program as the one to be used must be the GNU sed (-r parameter is used). For instance default sed program on OS X is not supporting this parameter and launching lets encrypt.sh is displaying following error: sed: illegal option -- r usage: sed script [-Ealn] [-i extension] [file ...] sed [-Ealn] [-i extension] [-e script] ... [-f script_file] ... [file ...] GNU sed can be installed from macport and its name is gsed. So a simple SED=gsed in config.sh file is resolving this issue. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 01:28:20 +01:00
adam closed this issue 2025-12-29 01:28:20 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/dehydrated#661