$ brew cask install tunnelblick --force
==> Caveats
For security reasons, tunnelblick must be installed to /Applications,
and will request to be moved at launch.
==> Satisfying dependencies
complete
==> Downloading https://www.tunnelblick.net/release/Tunnelblick_3.5.5_build_4270.4461.dmg
Already downloaded: /Library/Caches/Homebrew/tunnelblick-3.5.5_build_4270.4461.dmg
==> Verifying checksum for Cask tunnelblick
==> Symlinking App 'Tunnelblick.app' to '/Applications/Tunnelblick.app'
🍺 tunnelblick staged at '/opt/homebrew-cask/Caskroom/tunnelblick/3.5.5_build_4270.4461' (249 files, 17M)
OK. But if it's symlinked with the same name, Tunnelblick fails to install itself properly:
1/5/16 18:44:54.896 Tunnelblick[35520]: installer reported failure: /opt/homebrew-cask/Caskroom/tunnelblick/3.5.5_build_4270.4461/Tunnelblick.app/Contents/Resources/installer: (
22
)
1/5/16 18:44:54.897 Tunnelblick[35520]: Installation or repair failed; Log:
Tunnelblick installer started 2016-01-05 18:44:43. 1 arguments: 0x0017
Apparent symlink attack detected at test point 1: Symlink is at /Applications/Tunnelblick.app, full path being tested is /Applications/Tunnelblick.app
Tunnelblick installer started 2016-01-05 18:44:45. 1 arguments: 0x0016
Apparent symlink attack detected at test point 1: Symlink is at /Applications/Tunnelblick.app, full path being tested is /Applications/Tunnelblick.app
Tunnelblick installer started 2016-01-05 18:44:47. 1 arguments: 0x0016
Apparent symlink attack detected at test point 1: Symlink is at /Applications/Tunnelblick.app, full path being tested is /Applications/Tunnelblick.app
Tunnelblick installer started 2016-01-05 18:44:50. 1 arguments: 0x0016
Apparent symlink attack detected at test point 1: Symlink is at /Applications/Tunnelblick.app, full path being tested is /Applications/Tunnelblick.app
Tunnelblick installer started 2016-01-05 18:44:54. 1 arguments: 0x0016
Apparent symlink attack detected at test point 1: Symlink is at /Applications/Tunnelblick.app, full path being tested is /Applications/Tunnelblick.app
So, to fix, one must:
$ rm /Applications/Tunnelblick.app
$ mv /opt/homebrew-cask/Caskroom/tunnelblick/3.5.5_build_4270.4461/Tunnelblick.app /Applications/
Is there any way to automate this?
OK. But if it's symlinked with the same name, Tunnelblick fails to install itself properly:
So, to fix, one must:
Is there any way to automate this?