diff options
| author | Martin Schimandl | 2016-10-23 20:39:53 +0200 |
|---|---|---|
| committer | Martin Schimandl | 2016-10-23 20:39:53 +0200 |
| commit | 95d4a258914867ef6237709dd03971dbec765324 (patch) | |
| tree | 8fefeb936fd8a3e3e2ba2e553449e6003da475c6 /Library | |
| parent | 32dc78835db1dff9135c3da9bc577f29469fb059 (diff) | |
| download | brew-95d4a258914867ef6237709dd03971dbec765324.tar.bz2 | |
Fix linting errors
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cask/lib/hbc/cli/reinstall.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/cli/reinstall.rb b/Library/Homebrew/cask/lib/hbc/cli/reinstall.rb index c98249ca8..ac514bd50 100644 --- a/Library/Homebrew/cask/lib/hbc/cli/reinstall.rb +++ b/Library/Homebrew/cask/lib/hbc/cli/reinstall.rb @@ -14,8 +14,9 @@ module Hbc unless latest_installed_version.nil? latest_installed_cask_file = installed_cask.metadata_master_container_path - .join(latest_installed_version.join(File::Separator), - "Casks", "#{cask_token}.rb") + .join(latest_installed_version + .join(File::Separator), + "Casks", "#{cask_token}.rb") # use the same cask file that was used for installation, if possible installed_cask = Hbc.load(latest_installed_cask_file) if latest_installed_cask_file.exist? |
