Skip to content

Commit 3fd3a2e

Browse files
switch to source
1 parent 9fbd51a commit 3fd3a2e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.zshrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,9 @@ alias tohex="printf '%x\n'"
113113

114114
function tf(){
115115
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
116+
[[ -e .tofu-pre && -x .tofu-pre ]] && echo "Running tofu pre-hook...">&2 && source ./.tofu-pre>&2
117117
tofu $@
118-
[[ -e .tofu-post && -x .tofu-post ]] && echo "Running tofu post-hook...">&2 && ./.tofu-post>&2
118+
[[ -e .tofu-post && -x .tofu-post ]] && echo "Running tofu post-hook...">&2 && source ./.tofu-post>&2
119119
}
120120

121121
alias tfa='tf apply --var-file ./environments/$(tofu workspace show).tfvars'

0 commit comments

Comments
 (0)