File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -108,6 +108,13 @@ dependencies() {
108
108
for dep in " $@ " ; do
109
109
if ! dependency_check " $dep " ; then
110
110
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
111
118
fail=1
112
119
fi
113
120
done
Original file line number Diff line number Diff line change @@ -12,6 +12,12 @@ set -euo pipefail
12
12
source " $( dirname " ${BASH_SOURCE[0]} " ) /../lib.sh"
13
13
cdroot
14
14
15
+ if isdarwin; then
16
+ dependencies gsed gawk
17
+ sed () { gsed " $@ " ; }
18
+ awk () { gawk " $@ " ; }
19
+ fi
20
+
15
21
# From install.sh
16
22
echo_latest_stable_version () {
17
23
# https://gist.github.com/lukechilds/a83e1d7127b78fef38c2914c4ececc3c#gistcomment-2758860
You can’t perform that action at this time.
0 commit comments