Skip to content

Commit ae3a617

Browse files
committed
chore(taskfiles): add preconditions for macos
Signed-off-by: Devin Buhl <[email protected]>
1 parent 18cad08 commit ae3a617

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.taskfiles/bootstrap/Taskfile.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ tasks:
2323
desc: Bootstrap apps into the Talos cluster
2424
cmd: bash {{.SCRIPTS_DIR}}/bootstrap-apps.sh
2525
preconditions:
26+
- msg: Unsupported bash version, run `brew install bash` to upgrade
27+
sh: '{{if eq OS "darwin"}}test -f /opt/homebrew/bin/bash{{end}}'
2628
- test -f {{.KUBECONFIG}}
2729
- test -f {{.ROOT_DIR}}/.sops.yaml
2830
- test -f {{.SCRIPTS_DIR}}/bootstrap-apps.sh

.taskfiles/template/Taskfile.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@ tasks:
133133
SED:
134134
sh: which gsed || which sed
135135
preconditions:
136+
- msg: Unsupported sed version, run `brew install gsed` to upgrade
137+
sh: '{{if eq OS "darwin"}}test -f /opt/homebrew/bin/gsed{{end}}'
136138
- test -d {{.ROOT_DIR}}/.github/tests
137139
- test -d {{.ROOT_DIR}}/.taskfiles/template
138140
- test -d {{.TEMPLATE_DIR}}

0 commit comments

Comments
 (0)