Skip to content

Commit

Permalink
Add "__chtf_" prefix to the "terraform-install.sh" script
Browse files Browse the repository at this point in the history
Make it clear that it is bundled with chtf. Especially for autoladed
fish version.
  • Loading branch information
tmatilai committed Nov 25, 2020
1 parent 2e9e36c commit 074289f
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ else
endif

CHTF_FILES := chtf.sh chtf.fish VERSION
CHTF_BIN_FILES := terraform-install.sh
CHTF_BIN_FILES := __chtf_terraform-install.sh

all:

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion chtf/chtf.fish
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ end

function _chtf_install_zip -a tf_version
set -l tf_dir $CHTF_TERRAFORM_DIR/terraform-$tf_version
set -l installer (_chtf_root_dir)/terraform-install.sh
set -l installer (_chtf_root_dir)/__chtf_terraform-install.sh

mkdir -p $tf_dir
env TF_INSTALL_DIR=$tf_dir $installer -i $tf_version
Expand Down
2 changes: 1 addition & 1 deletion chtf/chtf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ _chtf_install_zip() {
local tf_dir="$CHTF_TERRAFORM_DIR/terraform-$tf_version"

mkdir -p "$tf_dir"
env TF_INSTALL_DIR="$tf_dir" "$(_chtf_root_dir)"/terraform-install.sh -i "$tf_version"
env TF_INSTALL_DIR="$tf_dir" "$(_chtf_root_dir)"/__chtf_terraform-install.sh -i "$tf_version"
}

_chtf_confirm() {
Expand Down

0 comments on commit 074289f

Please sign in to comment.