last changes of 'brew --prefix' into 'brew --repository'

This commit is contained in:
Vítor Galvão
2015-10-27 23:56:51 +00:00
parent c2f77ddcdf
commit a6d00697fd
3 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -120,10 +120,10 @@ _main () {
# initialization
cd_to_project_root
local git_root="$(/bin/pwd)"
local brew_prefix="$(brew --prefix)"
local cellar_dir="$brew_prefix/Cellar/brew-cask"
local brew_repository="$(brew --repository)"
local cellar_dir="$brew_repository/Cellar/brew-cask"
local version_dir="$(/bin/ls -- "$cellar_dir/" | /usr/bin/sort | /usr/bin/tail -1)"
local tap_dir="$brew_prefix/$tap_subdir"
local tap_dir="$brew_repository/$tap_subdir"
# sanity check
not_inside_homebrew "$tap_dir" "$git_root"