mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
fix(scripts): allow docs_update_experiments.sh to be run on macOS (#14658)
This commit is contained in:
committed by
GitHub
parent
7ef6780d45
commit
bf87c97ede
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user