Skip to content

Commit

Permalink
Fix the CASKROOM path when listing Terraform versions
Browse files Browse the repository at this point in the history
Use the variable, do not hard code the path.
  • Loading branch information
Teemu Matilainen committed Jun 27, 2016
1 parent 1956795 commit b45d666
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 1.1.1 / 2016-06-27

* Fix the `CASKROOM` path when listing Terraform versions

# 1.1.0 / 2016-06-27

* Fix the `CASKROOM` default location [GH-2]
Expand Down
4 changes: 2 additions & 2 deletions chtf/chtf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

CHTF_VERSION='1.1.0'
CHTF_VERSION='1.1.1'
: ${CASKROOM:=/usr/local/Caskroom}

chtf_reset() {
Expand Down Expand Up @@ -62,7 +62,7 @@ chtf_list() (
# zsh
setopt null_glob 2>/dev/null || true

for dir in "/opt/homebrew-cask/Caskroom"/terraform-*/*; do
for dir in "$CASKROOM"/terraform-*/*; do
if [[ "$dir" == "$CHTF_CURRENT" ]]; then
echo " * $(basename "$dir")"
else
Expand Down

0 comments on commit b45d666

Please sign in to comment.