-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add patch to move hexdump check to function that
requires it #65
- Loading branch information
Showing
2 changed files
with
30 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
diff --git a/dehydrated b/dehydrated | ||
index a170666..19a2e49 100755 | ||
--- a/dehydrated | ||
+++ b/dehydrated | ||
@@ -260,7 +260,7 @@ _mktemp() { | ||
# Check for script dependencies | ||
check_dependencies() { | ||
# look for required binaries | ||
- for binary in grep mktemp diff sed awk curl cut head tail hexdump; do | ||
+ for binary in grep mktemp diff sed awk curl cut head tail; do | ||
bin_path="$(command -v "${binary}" 2>/dev/null)" || _exiterr "This script requires ${binary}." | ||
[[ -x "${bin_path}" ]] || _exiterr "${binary} found in PATH but it's not executable" | ||
done | ||
@@ -686,6 +686,8 @@ init_system() { | ||
|
||
# ZeroSSL special sauce | ||
if [[ "${CA}" = "${CA_ZEROSSL}" ]]; then | ||
+ bin_path="$(command -v "hexdump" 2>/dev/null)" || _exiterr "This script requires hexdump." | ||
+ [[ -x "${bin_path}" ]] || _exiterr "hexdump found in PATH but it's not executable" | ||
if [[ -z "${EAB_KID:-}" ]] || [[ -z "${EAB_HMAC_KEY:-}" ]]; then | ||
if [[ -z "${CONTACT_EMAIL}" ]]; then | ||
echo "ZeroSSL requires contact email to be set or EAB_KID/EAB_HMAC_KEY to be manually configured" |