new line on errors

This commit is contained in:
shijimasoft 2022-08-03 19:10:40 +02:00
parent 575dc6526a
commit 39dc580edc

View File

@ -27,12 +27,12 @@ tools.each do |tool|
if !File.exists? %x[which #{tool}].chomp if !File.exists? %x[which #{tool}].chomp
case tool case tool
when "python2.7" when "python2.7"
print "#{"Python 2.7".colorize.mode :bold} not found. Install it before continue" puts "#{"Python 2.7".colorize.mode :bold} not found. Install it before continue"
abort "https://www.python.org/download/releases/2.7/" abort "https://www.python.org/download/releases/2.7/"
when "decrypt.py" when "decrypt.py"
abort "#{tool.colorize.mode :bold} not found. Make sure it's located in the #{"same directory".colorize.mode :underline}" if !File.exists? tool abort "#{tool.colorize.mode :bold} not found. Make sure it's located in the #{"same directory".colorize.mode :underline}" if !File.exists? tool
else else
print "Some #{"tools".colorize.mode :bold} are missing, do you want to download them? (y/n): " puts "Some #{"tools".colorize.mode :bold} are missing, do you want to download them? (y/n): "
if ["y", "Y"].includes? gets.to_s if ["y", "Y"].includes? gets.to_s
system "./dltools.sh" system "./dltools.sh"
else else