Use same ExitMessage for all packages asking to source ~/.bashrc (#8900)

* Use same ExitMessage for all packages asking to source ~/.bashrc

* refactor reload_source

* update mold

* add extra space

* fix msg

* rename macro

* change name of macro again, run rubocop on package.rb

* update mold => 2.3.2
This commit is contained in:
Satadru Pramanik, DO, MPH, MEng
2023-11-06 19:46:40 -05:00
committed by GitHub
parent 389371c51f
commit ded56e955c
26 changed files with 61 additions and 91 deletions

View File

@@ -14,6 +14,7 @@ class Torbrowser < Package
no_compile_needed
no_shrink
print_source_bashrc
def self.build
tor = <<~EOF
@@ -37,8 +38,6 @@ class Torbrowser < Package
end
def self.postinstall
puts "\nTo finish the installation, execute the following:".lightblue
puts 'source ~/.bashrc'.lightblue
print "\nSet Tor as your default browser? [Y/n]: "
case $stdin.gets.chomp.downcase
when '', 'y', 'yes'