Skip to content

Commit bf87c97

Browse files
authored
fix(scripts): allow docs_update_experiments.sh to be run on macOS (#14658)
1 parent 7ef6780 commit bf87c97

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

scripts/lib.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,13 @@ dependencies() {
108108
for dep in "$@"; do
109109
if ! dependency_check "$dep"; then
110110
log "ERROR: The '$dep' dependency is required, but is not available."
111+
if isdarwin; then
112+
case "$dep" in
113+
gsed | gawk)
114+
log "- brew install $dep"
115+
;;
116+
esac
117+
fi
111118
fail=1
112119
fi
113120
done

scripts/release/docs_update_experiments.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ set -euo pipefail
1212
source "$(dirname "${BASH_SOURCE[0]}")/../lib.sh"
1313
cdroot
1414

15+
if isdarwin; then
16+
dependencies gsed gawk
17+
sed() { gsed "$@"; }
18+
awk() { gawk "$@"; }
19+
fi
20+
1521
# From install.sh
1622
echo_latest_stable_version() {
1723
# https://gist.github.com/lukechilds/a83e1d7127b78fef38c2914c4ececc3c#gistcomment-2758860

0 commit comments

Comments
 (0)
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