diff --git a/scripts/lib.sh b/scripts/lib.sh index e245fb4ab8cc7..fb6220eecb85e 100644 --- a/scripts/lib.sh +++ b/scripts/lib.sh @@ -108,6 +108,13 @@ dependencies() { for dep in "$@"; do if ! dependency_check "$dep"; then log "ERROR: The '$dep' dependency is required, but is not available." + if isdarwin; then + case "$dep" in + gsed | gawk) + log "- brew install $dep" + ;; + esac + fi fail=1 fi done diff --git a/scripts/release/docs_update_experiments.sh b/scripts/release/docs_update_experiments.sh index 2168fc4d11c9d..8ed380a356a2e 100755 --- a/scripts/release/docs_update_experiments.sh +++ b/scripts/release/docs_update_experiments.sh @@ -12,6 +12,12 @@ set -euo pipefail source "$(dirname "${BASH_SOURCE[0]}")/../lib.sh" cdroot +if isdarwin; then + dependencies gsed gawk + sed() { gsed "$@"; } + awk() { gawk "$@"; } +fi + # From install.sh echo_latest_stable_version() { # https://gist.github.com/lukechilds/a83e1d7127b78fef38c2914c4ececc3c#gistcomment-2758860 pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy