mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-08 23:18:10 -05:00
6
bin/crew
6
bin/crew
@@ -1405,11 +1405,11 @@ def resolve_dependencies
|
||||
puts @dependencies.join(' ')
|
||||
|
||||
print 'Do you agree? [Y/n] '
|
||||
response = $stdin.getc
|
||||
response = $stdin.gets.chomp.downcase
|
||||
case response
|
||||
when 'n'
|
||||
when 'n', 'no'
|
||||
abort 'No changes made.'
|
||||
when "\n", 'y', 'Y'
|
||||
when '', 'y', 'yes'
|
||||
puts 'Proceeding...'
|
||||
else
|
||||
puts "I don't understand `#{response}`. :(".lightred
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Defines common constants used in different parts of crew
|
||||
|
||||
CREW_VERSION = '1.30.6'
|
||||
CREW_VERSION = '1.30.7'
|
||||
|
||||
# kernel architecture
|
||||
KERN_ARCH = `uname -m`.chomp
|
||||
|
||||
@@ -37,13 +37,13 @@ class Android_studio < Package
|
||||
|
||||
def self.remove
|
||||
print 'Would you like to remove the config directories? [y/N] '
|
||||
response = $stdin.getc
|
||||
response = $stdin.gets.chomp.downcase
|
||||
config_dirs = ["#{HOME}/.android", "#{HOME}/Android"]
|
||||
config_dirs.each do |config_dir|
|
||||
next unless Dir.exist? config_dir
|
||||
|
||||
case response
|
||||
when 'y', 'Y'
|
||||
when 'y', 'yes'
|
||||
FileUtils.rm_rf config_dir
|
||||
puts "#{config_dir} removed.".lightred
|
||||
else
|
||||
|
||||
@@ -63,8 +63,8 @@ class Bluefish < Package
|
||||
if Dir.exist? config_dir
|
||||
puts 'WARNING: This will remove all bluefish config!'.orange
|
||||
print "Would you like to remove the #{config_dir} directory? [y/N] "
|
||||
case $stdin.getc
|
||||
when 'y', 'Y'
|
||||
case $stdin.gets.chomp.downcase
|
||||
when 'y', 'yes'
|
||||
FileUtils.rm_rf config_dir
|
||||
puts "#{config_dir} removed.".lightgreen
|
||||
else
|
||||
|
||||
@@ -33,8 +33,8 @@ class Cheat < Package
|
||||
if Dir.exist? config_dir
|
||||
puts 'WARNING: This will remove all cheat config!'.orange
|
||||
print "Would you like to remove the #{config_dir} directory? [y/N] "
|
||||
case $stdin.getc
|
||||
when 'y', 'Y'
|
||||
case $stdin.gets.chomp.downcase
|
||||
when 'y', 'yes'
|
||||
FileUtils.rm_rf config_dir
|
||||
puts "#{config_dir} removed.".lightgreen
|
||||
else
|
||||
|
||||
@@ -71,8 +71,8 @@ class Clamav < Package
|
||||
if Dir.exist? config_dir
|
||||
puts 'WARNING: This will remove the clamav database!'.orange
|
||||
print "Would you like to remove the #{config_dir} directory? [y/N] "
|
||||
case $stdin.getc
|
||||
when 'y', 'Y'
|
||||
case $stdin.gets.chomp.downcase
|
||||
when 'y', 'yes'
|
||||
FileUtils.rm_rf config_dir
|
||||
puts "#{config_dir} removed.".lightgreen
|
||||
else
|
||||
|
||||
@@ -82,8 +82,8 @@ class Clamtk < Package
|
||||
if Dir.exist? config_dir
|
||||
puts 'WARNING: This will remove all clamtk config!'.orange
|
||||
print "Would you like to remove the #{config_dir} directory? [y/N] "
|
||||
case $stdin.getc
|
||||
when 'y', 'Y'
|
||||
case $stdin.gets.chomp.downcase
|
||||
when 'y', 'yes'
|
||||
FileUtils.rm_rf config_dir
|
||||
puts "#{config_dir} removed.".lightgreen
|
||||
else
|
||||
|
||||
@@ -42,8 +42,8 @@ class Dbeaver < Package
|
||||
config_dir = "#{HOME}/.local/share/DBeaverData"
|
||||
if Dir.exist? config_dir
|
||||
print "Would you like to remove the #{config_dir} directory? [y/N] "
|
||||
case $stdin.getc
|
||||
when 'y', 'Y'
|
||||
case $stdin.gets.chomp.downcase
|
||||
when 'y', 'yes'
|
||||
FileUtils.rm_rf config_dir
|
||||
puts "#{config_dir} removed.".lightred
|
||||
else
|
||||
|
||||
@@ -43,11 +43,11 @@ class Dosbox < Package
|
||||
|
||||
def self.remove
|
||||
print 'Would you like to remove the config directory? [y/N] '
|
||||
response = $stdin.getc
|
||||
response = $stdin.gets.chomp.downcase
|
||||
config_dir = "#{HOME}/.dosbox"
|
||||
if Dir.exist? config_dir
|
||||
case response
|
||||
when 'y', 'Y'
|
||||
when 'y', 'yes'
|
||||
FileUtils.rm_rf config_dir
|
||||
puts "#{config_dir} removed.".lightred
|
||||
else
|
||||
|
||||
@@ -37,8 +37,8 @@ class Electric < Package
|
||||
log_file = "#{HOME}/electric.log"
|
||||
if File.exist? log_file
|
||||
print "Would you like to remove #{log_file}? [y/N] "
|
||||
case $stdin.getc
|
||||
when 'y', 'Y'
|
||||
case $stdin.gets.chomp.downcase
|
||||
when 'y', 'yes'
|
||||
FileUtils.rm_f log_file
|
||||
puts "#{log_file} removed.".lightred
|
||||
else
|
||||
|
||||
@@ -35,8 +35,8 @@ class Exodus < Package
|
||||
if Dir.exist? config_dir
|
||||
puts 'WARNING: This will remove all Exodus data!'.orange
|
||||
print "Would you like to remove the #{config_dir} directory? [y/N] "
|
||||
case $stdin.getc
|
||||
when 'y', 'Y'
|
||||
case $stdin.gets.chomp.downcase
|
||||
when 'y', 'yes'
|
||||
FileUtils.rm_rf config_dir
|
||||
puts "#{config_dir} removed.".lightgreen
|
||||
else
|
||||
|
||||
@@ -44,8 +44,8 @@ class Ferdi < Package
|
||||
config_dir = "#{HOME}/.config/autostart"
|
||||
if Dir.exist? config_dir
|
||||
print "Would you like to remove the config directory #{config_dir}? [y/N] "
|
||||
case $stdin.getc
|
||||
when 'y', 'Y'
|
||||
case $stdin.gets.chomp.downcase
|
||||
when 'y', 'yes'
|
||||
FileUtils.rm_rf config_dir
|
||||
puts "#{config_dir} removed.".lightred
|
||||
else
|
||||
|
||||
@@ -97,8 +97,8 @@ class Firefox < Package
|
||||
|
||||
def self.postinstall
|
||||
print "\nSet Firefox as your default browser? [Y/n]: "
|
||||
case $stdin.getc
|
||||
when "\n", 'Y', 'y'
|
||||
case $stdin.gets.chomp.downcase
|
||||
when '', 'y', 'yes'
|
||||
Dir.chdir("#{CREW_PREFIX}/bin") do
|
||||
FileUtils.ln_sf 'firefox', 'x-www-browser'
|
||||
end
|
||||
|
||||
@@ -33,13 +33,13 @@ class Flutter < Package
|
||||
|
||||
def self.remove
|
||||
print 'Would you like to remove the config directories? [y/N] '
|
||||
response = $stdin.getc
|
||||
response = $stdin.gets.chomp.downcase
|
||||
config_dirs = ["#{HOME}/.flutter", "#{CREW_PREFIX}/share/flutter"]
|
||||
config_dirs.each do |config_dir|
|
||||
next unless Dir.exist? config_dir
|
||||
|
||||
case response
|
||||
when 'y', 'Y'
|
||||
when 'y', 'yes'
|
||||
FileUtils.rm_rf config_dir
|
||||
puts "#{config_dir} removed.".lightred
|
||||
else
|
||||
|
||||
@@ -48,11 +48,11 @@ class Fpc < Package
|
||||
|
||||
def self.remove
|
||||
print 'Would you like to remove the config directories? [y/N] '
|
||||
response = $stdin.getc
|
||||
response = $stdin.gets.chomp.downcase
|
||||
config_dirs = ["#{HOME}/.fpc.cfg", "#{HOME}/.config/fppkg.cfg", "#{HOME}/.fppkg"]
|
||||
config_dirs.each do |config_dir|
|
||||
case response
|
||||
when 'y', 'Y'
|
||||
when 'y', 'yes'
|
||||
FileUtils.rm_rf config_dir
|
||||
puts "#{config_dir} removed.".lightred
|
||||
else
|
||||
|
||||
@@ -49,8 +49,8 @@ class Freecad < Package
|
||||
config_dir = "#{HOME}/.FreeCAD"
|
||||
if Dir.exist? config_dir.to_s
|
||||
print "\nWould you like to remove #{config_dir}? [y/N] "
|
||||
case $stdin.getc
|
||||
when 'y', 'Y'
|
||||
case $stdin.gets.chomp.downcase
|
||||
when 'y', 'yes'
|
||||
FileUtils.rm_rf config_dir.to_s
|
||||
puts "#{config_dir} removed.".lightred
|
||||
else
|
||||
|
||||
@@ -56,13 +56,13 @@ class Gcloud < Package
|
||||
|
||||
def self.remove
|
||||
print 'Would you like to remove the config directories? [y/N] '
|
||||
response = $stdin.getc
|
||||
response = $stdin.gets.chomp.downcase
|
||||
config_dirs = ["#{HOME}/.config/gcloud", "#{CREW_PREFIX}/share/gcloud"]
|
||||
config_dirs.each do |config_dir|
|
||||
next unless Dir.exist? config_dir
|
||||
|
||||
case response
|
||||
when 'y', 'Y'
|
||||
when 'y', 'yes'
|
||||
FileUtils.rm_rf config_dir
|
||||
puts "#{config_dir} removed.".lightred
|
||||
else
|
||||
|
||||
@@ -66,8 +66,8 @@ class Geany < Package
|
||||
next unless Dir.exist? config_dir
|
||||
|
||||
print "\nWould you like to remove #{config_dir}? [y/N] "
|
||||
case $stdin.getc
|
||||
when 'y', 'Y'
|
||||
case $stdin.gets.chomp.downcase
|
||||
when 'y', 'yes'
|
||||
FileUtils.rm_rf config_dir
|
||||
puts "#{config_dir} removed.".lightred
|
||||
else
|
||||
|
||||
@@ -46,8 +46,8 @@ class Github_desktop < Package
|
||||
if Dir.exist? config_dir.to_s
|
||||
system "echo '#{config_dir}'; ls '#{config_dir}'"
|
||||
print "\nWould you like to remove the config directories above? [y/N] "
|
||||
case $stdin.getc
|
||||
when 'y', 'Y'
|
||||
case $stdin.gets.chomp.downcase
|
||||
when 'y', 'yes'
|
||||
FileUtils.rm_rf config_dir
|
||||
puts "'#{config_dir}' removed.".lightred
|
||||
else
|
||||
|
||||
@@ -112,8 +112,8 @@ class Gvim < Package
|
||||
@create_vi_symlink_ask = true if @crew_vi || @system_vi
|
||||
if @create_vi_symlink_ask
|
||||
print "\nWould you like to set vim to be the default vi [y/N] "
|
||||
case $stdin.getc
|
||||
when 'y', 'Y'
|
||||
case $stdin.gets.chomp.downcase
|
||||
when 'y', 'yes'
|
||||
@create_vi_symlink = true
|
||||
else
|
||||
@create_vi_symlink = false
|
||||
|
||||
@@ -37,13 +37,13 @@ class Idea < Package
|
||||
|
||||
def self.remove
|
||||
print 'Would you like to remove the config directories? [y/N] '
|
||||
response = $stdin.getc
|
||||
response = $stdin.gets.chomp.downcase
|
||||
config_dirs = ["#{CREW_PREFIX}/.config/JetBrains/.IdeaIC2022.3", "#{HOME}/.IdeaIC2022.3"]
|
||||
config_dirs.each do |config_dir|
|
||||
next unless Dir.exist? config_dir
|
||||
|
||||
case response
|
||||
when 'y', 'Y'
|
||||
when 'y', 'yes'
|
||||
FileUtils.rm_rf config_dir
|
||||
puts "#{config_dir} removed.".lightred
|
||||
else
|
||||
|
||||
@@ -18,7 +18,7 @@ class Imagemagick < Package
|
||||
puts ' 7 = ImageMagick 7.0.11-2'
|
||||
puts ' 0 = Cancel'
|
||||
|
||||
while version = $stdin.gets.chomp
|
||||
while version = $stdin.gets.chomp.downcase
|
||||
case version
|
||||
when '6'
|
||||
depends_on 'imagemagick6'
|
||||
|
||||
@@ -25,13 +25,13 @@ class Komodo < Package
|
||||
|
||||
def self.remove
|
||||
print 'Would you like to remove the config directories? [y/N] '
|
||||
response = $stdin.getc
|
||||
response = $stdin.gets.chomp.downcase
|
||||
config_dirs = ["#{HOME}/.komodoide", "#{HOME}/.activestate"]
|
||||
config_dirs.each do |config_dir|
|
||||
next unless Dir.exist? config_dir
|
||||
|
||||
case response
|
||||
when 'y', 'Y'
|
||||
when 'y', 'yes'
|
||||
FileUtils.rm_rf config_dir
|
||||
puts "#{config_dir} removed.".lightred
|
||||
else
|
||||
|
||||
@@ -24,8 +24,8 @@ class Leiningen < Package
|
||||
config_dir = "#{HOME}/.lein"
|
||||
if Dir.exist? config_dir
|
||||
print "Would you like to remove the #{config_dir} directory? [y/N] "
|
||||
case $stdin.getc
|
||||
when 'y', 'Y'
|
||||
case $stdin.gets.chomp.downcase
|
||||
when 'y', 'yes'
|
||||
FileUtils.rm_rf config_dir
|
||||
puts "#{config_dir} removed.".lightred
|
||||
else
|
||||
|
||||
@@ -63,8 +63,8 @@ class Mysql < Package
|
||||
if Dir.exist? data_dir.to_s
|
||||
puts "\nWARNING: This will delete all your databases!".orange
|
||||
print "Would you like to remove #{data_dir}? [y/N] "
|
||||
case $stdin.getc
|
||||
when 'y', 'Y'
|
||||
case $stdin.gets.chomp.downcase
|
||||
when 'y', 'yes'
|
||||
FileUtils.rm_rf data_dir.to_s
|
||||
puts "#{data_dir} removed.".lightred
|
||||
else
|
||||
|
||||
@@ -39,8 +39,8 @@ class Natron < Package
|
||||
config_dir = "#{HOME}/.Natron"
|
||||
if Dir.exist? config_dir
|
||||
print "Would you like to remove the config directory #{config_dir}? [y/N] "
|
||||
case $stdin.getc
|
||||
when 'y', 'Y'
|
||||
case $stdin.gets.chomp.downcase
|
||||
when 'y', 'yes'
|
||||
FileUtils.rm_rf config_dir
|
||||
puts "#{config_dir} removed.".lightred
|
||||
else
|
||||
|
||||
@@ -59,8 +59,8 @@ class Neovim < Package
|
||||
@create_vi_symlink_ask = true if @crew_vi || @system_vi
|
||||
if @create_vi_symlink_ask
|
||||
print "\nWould you like to set nvim to be the default vi [y/N] "
|
||||
case $stdin.getc
|
||||
when 'y', 'Y'
|
||||
case $stdin.gets.chomp.downcase
|
||||
when 'y', 'yes'
|
||||
@create_vi_symlink = true
|
||||
else
|
||||
@create_vi_symlink = false
|
||||
|
||||
@@ -30,8 +30,8 @@ class Netbeans < Package
|
||||
config_dir = "#{HOME}/.netbeans"
|
||||
if Dir.exist? config_dir
|
||||
print "Would you like to remove the config directory #{config_dir}? [y/N] "
|
||||
case $stdin.getc
|
||||
when 'y', 'Y'
|
||||
case $stdin.gets.chomp.downcase
|
||||
when 'y', 'yes'
|
||||
FileUtils.rm_rf config_dir
|
||||
puts "#{config_dir} removed.".lightgreen
|
||||
else
|
||||
|
||||
@@ -52,8 +52,8 @@ class Newsboat < Package
|
||||
config_dir = "#{HOME}/.newsboat"
|
||||
if Dir.exist? config_dir
|
||||
print "Would you like to remove the config directory #{config_dir}? [y/N] "
|
||||
case $stdin.getc
|
||||
when 'y', 'Y'
|
||||
case $stdin.gets.chomp.downcase
|
||||
when 'y', 'yes'
|
||||
FileUtils.rm_rf config_dir
|
||||
puts "#{config_dir} removed.".lightred
|
||||
else
|
||||
|
||||
@@ -85,9 +85,9 @@ class Nginx < Package
|
||||
if Dir.exist? "#{CREW_PREFIX}/share/nginx"
|
||||
puts
|
||||
print "Would you like to remove #{CREW_PREFIX}/share/nginx? [y/N] "
|
||||
response = $stdin.getc
|
||||
response = $stdin.gets.chomp.downcase
|
||||
case response
|
||||
when 'y', 'Y'
|
||||
when 'y', 'yes'
|
||||
FileUtils.rm_rf "#{CREW_PREFIX}/share/nginx"
|
||||
puts "#{CREW_PREFIX}/share/nginx removed.".lightred
|
||||
else
|
||||
|
||||
@@ -82,9 +82,9 @@ class Nodebrew < Package
|
||||
if Dir.exist? "#{CREW_PREFIX}/share/nodebrew"
|
||||
puts
|
||||
print "Would you like to remove #{CREW_PREFIX}/share/nodebrew? [y/N] "
|
||||
response = $stdin.getc
|
||||
response = $stdin.gets.chomp.downcase
|
||||
case response
|
||||
when 'y', 'Y'
|
||||
when 'y', 'yes'
|
||||
FileUtils.rm_rf "#{CREW_PREFIX}/share/nodebrew"
|
||||
puts "#{CREW_PREFIX}/share/nodebrew removed.".lightred
|
||||
else
|
||||
|
||||
@@ -60,9 +60,9 @@ class Opam < Package
|
||||
|
||||
puts
|
||||
print "Would you like to remove #{@OPAMROOT}? [y/N] "
|
||||
response = $stdin.getc
|
||||
response = $stdin.gets.chomp.downcase
|
||||
case response
|
||||
when 'y', 'Y'
|
||||
when 'y', 'yes'
|
||||
FileUtils.rm_rf @OPAMROOT
|
||||
puts "#{@OPAMROOT} removed.".lightred
|
||||
else
|
||||
|
||||
@@ -38,8 +38,8 @@ class Opera < Package
|
||||
def self.postinstall
|
||||
puts
|
||||
print 'Set Opera as your default browser? [Y/n]: '
|
||||
case $stdin.getc
|
||||
when "\n", 'Y', 'y'
|
||||
case $stdin.gets.chomp.downcase
|
||||
when '', 'y', 'yes'
|
||||
Dir.chdir("#{CREW_PREFIX}/bin") do
|
||||
FileUtils.ln_sf "#{CREW_LIB_PREFIX}/opera/opera", 'x-www-browser'
|
||||
end
|
||||
|
||||
@@ -28,7 +28,7 @@ class Php < Package
|
||||
puts '8.2 = PHP 8.2.1'
|
||||
puts ' 0 = Cancel'
|
||||
|
||||
while version = $stdin.gets.chomp
|
||||
while version = $stdin.gets.chomp.downcase
|
||||
case version
|
||||
when '5.6'
|
||||
depends_on 'php5'
|
||||
|
||||
@@ -75,8 +75,8 @@ class Postgres < Package
|
||||
if Dir.exist? PGDATA
|
||||
puts 'WARNING: This will delete all databases!'.orange
|
||||
print "Would you like to remove #{PGDATA}? [y/N] "
|
||||
case $stdin.getc
|
||||
when 'y', 'Y'
|
||||
case $stdin.gets.chomp.downcase
|
||||
when 'y', 'yes'
|
||||
FileUtils.rm_rf PGDATA
|
||||
FileUtils.rm_rf "#{CREW_PREFIX}/pgsql"
|
||||
puts "#{PGDATA} removed.".lightred
|
||||
|
||||
@@ -37,8 +37,8 @@ class Pycharm < Package
|
||||
if Dir.exist? config_dir
|
||||
puts 'WARNING: This will remove all PyCharm config!'.orange
|
||||
print "Would you like to remove the #{config_dir} directory? [y/N] "
|
||||
case $stdin.getc
|
||||
when 'y', 'Y'
|
||||
case $stdin.gets.chomp.downcase
|
||||
when 'y', 'yes'
|
||||
FileUtils.rm_rf config_dir
|
||||
puts "#{config_dir} removed.".lightred
|
||||
else
|
||||
|
||||
@@ -80,8 +80,8 @@ class Rust < Package
|
||||
config_dirs = %W[#{HOME}/.rustup #{CREW_PREFIX}/share/rustup #{HOME}/.cargo #{CREW_PREFIX}/share/cargo]
|
||||
print config_dirs.to_s
|
||||
print "\nWould you like to remove the config directories above? [y/N] "
|
||||
case $stdin.getc
|
||||
when 'y', 'Y'
|
||||
case $stdin.gets.chomp.downcase
|
||||
when 'y', 'yes'
|
||||
FileUtils.rm_rf config_dirs
|
||||
puts "#{config_dirs} removed.".lightgreen
|
||||
else
|
||||
|
||||
@@ -45,8 +45,8 @@ class Snowflake < Package
|
||||
if Dir.exist? config_dir
|
||||
puts 'WARNING: This will remove all saved ssh sessions!'.orange
|
||||
print "Would you like to remove the #{config_dir} directory? [y/N] "
|
||||
case $stdin.getc
|
||||
when 'y', 'Y'
|
||||
case $stdin.gets.chomp.downcase
|
||||
when 'y', 'yes'
|
||||
FileUtils.rm_rf config_dir
|
||||
puts "#{config_dir} removed.".lightred
|
||||
else
|
||||
|
||||
@@ -45,8 +45,8 @@ class Stellarium < Package
|
||||
config_dir = "#{HOME}/.stellarium"
|
||||
if Dir.exist? config_dir
|
||||
print "Would you like to remove the config directory #{config_dir}? [y/N] "
|
||||
case $stdin.getc
|
||||
when 'y', 'Y'
|
||||
case $stdin.gets.chomp.downcase
|
||||
when 'y', 'yes'
|
||||
FileUtils.rm_rf config_dir
|
||||
puts "#{config_dir} removed.".lightred
|
||||
else
|
||||
|
||||
@@ -46,8 +46,8 @@ class Teams < Package
|
||||
system "echo '#{config_dir}'; ls '#{config_dir}'"
|
||||
end
|
||||
print "\nWould you like to remove the config directories above? [y/N] "
|
||||
case $stdin.getc
|
||||
when 'y', 'Y'
|
||||
case $stdin.gets.chomp.downcase
|
||||
when 'y', 'yes'
|
||||
config_dirs.each do |config_dir|
|
||||
next unless Dir.exist? config_dir
|
||||
|
||||
|
||||
@@ -43,8 +43,8 @@ class Torbrowser < Package
|
||||
|
||||
def self.postinstall
|
||||
print "\nSet Tor as your default browser? [Y/n]: "
|
||||
case $stdin.getc
|
||||
when "\n", 'Y', 'y'
|
||||
case $stdin.gets.chomp.downcase
|
||||
when '', 'y', 'yes'
|
||||
Dir.chdir("#{CREW_PREFIX}/bin") do
|
||||
FileUtils.ln_sf 'tor', 'x-www-browser'
|
||||
end
|
||||
|
||||
@@ -21,7 +21,7 @@ class Uwsgi < Package
|
||||
system "echo 'Select plugin(s):' && ls plugins"
|
||||
puts
|
||||
system "echo -n 'Enter selection (separate multiple plugins by a space) [python]: '"
|
||||
plugins = $stdin.gets.chomp
|
||||
plugins = $stdin.gets.chomp.downcase
|
||||
puts
|
||||
system "make #{plugins}"
|
||||
end
|
||||
|
||||
@@ -104,8 +104,8 @@ class Vim < Package
|
||||
@create_vi_symlink_ask = true if @crew_vi || @system_vi
|
||||
if @create_vi_symlink_ask
|
||||
print "\nWould you like to set vim to be the default vi [y/N] "
|
||||
case $stdin.getc
|
||||
when 'y', 'Y'
|
||||
case $stdin.gets.chomp.downcase
|
||||
when 'y', 'yes'
|
||||
@create_vi_symlink = true
|
||||
else
|
||||
@create_vi_symlink = false
|
||||
|
||||
@@ -66,8 +66,8 @@ class Vuze < Package
|
||||
system "echo '#{config_dir}'; ls '#{config_dir}'"
|
||||
end
|
||||
print "\nWould you like to remove the config directories above? [y/N] "
|
||||
case $stdin.getc
|
||||
when 'y', 'Y'
|
||||
case $stdin.gets.chomp.downcase
|
||||
when 'y', 'yes'
|
||||
config_dirs.each do |config_dir|
|
||||
next unless Dir.exist? config_dir
|
||||
|
||||
|
||||
@@ -104,8 +104,8 @@ class Wine < Package
|
||||
next unless Dir.exist? config_dir
|
||||
|
||||
print "\nWould you like to remove #{config_dir}? [y/N] "
|
||||
case $stdin.getc
|
||||
when 'y', 'Y'
|
||||
case $stdin.gets.chomp.downcase
|
||||
when 'y', 'yes'
|
||||
FileUtils.rm_rf config_dir
|
||||
puts "#{config_dir} removed.".lightred
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user