Commit 94501a1b authored by Ed Reel's avatar Ed Reel Committed by Kazushi (Jam) Marukawa

Change to print 'X architecture not supported' instead of abort

parent e1ce7783
...@@ -9,17 +9,21 @@ class Dmidecode < Package ...@@ -9,17 +9,21 @@ class Dmidecode < Package
def self.build def self.build
case ARCH case ARCH
when 'aarch64', 'armv7l' when 'i686', 'x86_64'
abort "#{ARCH} architecture not supported.".lightred
end
system 'make' system 'make'
else
puts "#{ARCH} architecture not supported.".lightred
end
end end
def self.install def self.install
case ARCH
when 'i686', 'x86_64'
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
puts "" puts ""
puts "To complete the installation, execute the following:".lightblue puts "To complete the installation, execute the following:".lightblue
puts "echo 'export PATH=$PATH:/usr/local/sbin' >> ~/.bashrc && source ~/.bashrc".lightblue puts "echo 'export PATH=$PATH:/usr/local/sbin' >> ~/.bashrc && source ~/.bashrc".lightblue
puts "" puts ""
end end
end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment