diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 735cf81..87fb517 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -35,24 +35,24 @@ jobs: - name: Trader workstation (stable) run: | - brew style --cask ./Casks/trader-workstation-stable.rb - brew audit --cask --strict ./Casks/trader-workstation-stable.rb + brew style --cask trader-workstation-stable + brew audit --cask --online --strict trader-workstation-stable - brew install --cask ./Casks/trader-workstation-stable.rb - brew uninstall --cask ./Casks/trader-workstation-stable.rb + brew install --cask trader-workstation-stable + brew uninstall --cask trader-workstation-stable - name: Trader workstation (latest) run: | - brew style --cask ./Casks/trader-workstation-latest.rb - brew audit --cask --strict ./Casks/trader-workstation-latest.rb + brew style --cask trader-workstation-latest + brew audit --cask --online --strict trader-workstation-latest - brew install --cask ./Casks/trader-workstation-latest.rb - brew uninstall --cask ./Casks/trader-workstation-latest.rb + brew install --cask trader-workstation-latest + brew uninstall --cask trader-workstation-latest - name: Trader workstation (beta) run: | - brew style --cask ./Casks/trader-workstation-beta.rb - brew audit --cask --strict ./Casks/trader-workstation-beta.rb + brew style --cask trader-workstation-beta + brew audit --cask --online --strict trader-workstation-beta - brew install --cask ./Casks/trader-workstation-beta.rb - brew uninstall --cask ./Casks/trader-workstation-beta.rb + brew install --cask trader-workstation-beta + brew uninstall --cask trader-workstation-beta diff --git a/Casks/trader-workstation-beta.rb b/Casks/trader-workstation-beta.rb index 74325e3..f65c996 100755 --- a/Casks/trader-workstation-beta.rb +++ b/Casks/trader-workstation-beta.rb @@ -29,7 +29,6 @@ uninstall_preflight do ohai "Stopping all running instances of Trader Workstation prior to uninstall" system_command "/usr/bin/pkill", args: ["-f", "#{appdir}/Trader Workstation/Trader Workstation.app"] - rescue RuntimeError ohai "No running instances of Trader Workstation found" end diff --git a/Casks/trader-workstation-latest.rb b/Casks/trader-workstation-latest.rb index cbc3f4c..0de2fa6 100755 --- a/Casks/trader-workstation-latest.rb +++ b/Casks/trader-workstation-latest.rb @@ -28,7 +28,6 @@ uninstall_preflight do ohai "Stopping all running instances of Trader Workstation prior to uninstall" system_command "/usr/bin/pkill", args: ["-f", "#{appdir}/Trader Workstation #{version.major_minor}/Trader Workstation.app"] - rescue RuntimeError ohai "No running instances of Trader Workstation found" end diff --git a/Casks/trader-workstation-stable.rb b/Casks/trader-workstation-stable.rb index 220b099..ae21df8 100644 --- a/Casks/trader-workstation-stable.rb +++ b/Casks/trader-workstation-stable.rb @@ -28,7 +28,6 @@ uninstall_preflight do ohai "Stopping all running instances of Trader Workstation prior to uninstall" system_command "/usr/bin/pkill", args: ["-f", "#{appdir}/Trader Workstation #{version.major_minor}/Trader Workstation.app"] - rescue RuntimeError ohai "No running instances of Trader Workstation found" end