Skip to content

Commit

Permalink
fix: upgrade cask only at mac
Browse files Browse the repository at this point in the history
  • Loading branch information
rcmdnk committed Feb 12, 2023
1 parent 74864f3 commit 8d46c0b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions bin/brew-file
Expand Up @@ -3149,9 +3149,10 @@ class BrewFile:
self.helper.proc(
"brew upgrade --fetch-HEAD", dryrun=self.opt["dryrun"]
)
self.helper.proc(
"brew upgrade --cask", dryrun=self.opt["dryrun"]
)
if is_mac():
self.helper.proc(
"brew upgrade --cask", dryrun=self.opt["dryrun"]
)
if self.opt["repo"] != "":
self.repomgr("pull")
self.install()
Expand Down
7 changes: 4 additions & 3 deletions src/brew_file/brew_file.py
Expand Up @@ -2246,9 +2246,10 @@ def execute(self) -> None:
self.helper.proc(
"brew upgrade --fetch-HEAD", dryrun=self.opt["dryrun"]
)
self.helper.proc(
"brew upgrade --cask", dryrun=self.opt["dryrun"]
)
if is_mac():
self.helper.proc(
"brew upgrade --cask", dryrun=self.opt["dryrun"]
)
if self.opt["repo"] != "":
self.repomgr("pull")
self.install()
Expand Down

0 comments on commit 8d46c0b

Please sign in to comment.