We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9fbd51a commit 3fd3a2eCopy full SHA for 3fd3a2e
.zshrc
@@ -113,9 +113,9 @@ alias tohex="printf '%x\n'"
113
114
function tf(){
115
echo "Running tofu on workspace: $(tofu workspace show).">&2
116
- [[ -e .tofu-pre && -x .tofu-pre ]] && echo "Running tofu pre-hook...">&2 && ./.tofu-pre>&2
+ [[ -e .tofu-pre && -x .tofu-pre ]] && echo "Running tofu pre-hook...">&2 && source ./.tofu-pre>&2
117
tofu $@
118
- [[ -e .tofu-post && -x .tofu-post ]] && echo "Running tofu post-hook...">&2 && ./.tofu-post>&2
+ [[ -e .tofu-post && -x .tofu-post ]] && echo "Running tofu post-hook...">&2 && source ./.tofu-post>&2
119
}
120
121
alias tfa='tf apply --var-file ./environments/$(tofu workspace show).tfvars'
0 commit comments