upd

upd - update all of your package systems on macOS at once.
git clone git://git.alex.balgavy.eu/upd.git
Log | Files | Refs | README | LICENSE

commit e9b4335faac381d8a1b4b3df34b5eba0cce919ad
parent 36f01ac1b651799c18ca002f7c501ea175739fe5
Author: Alex Balgavy <alex@balgavy.eu>
Date:   Sat,  8 May 2021 13:33:11 +0200

Don't hardcode Brewfile path

Diffstat:
Mupd | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/upd b/upd @@ -73,7 +73,8 @@ class Homebrew puts "Homebrew cache disk usage: #{`du -skh "$(brew --cache)" | cut -f1`}" puts "Remove with:\trm -rf $(brew --cache)" - system 'brew bundle dump --force --file=~/.dotfiles/Brewfile;' + brewfile = (ENV['DOTFILES'].nil? ? "#{ENV['HOME']}/Brewfile" : "#{ENV['DOTFILES']}/Brewfile") + system "brew bundle dump --force --file=#{brewfile};" end end