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
def self.build
case ARCH
when 'aarch64', 'armv7l'
abort "#{ARCH} architecture not supported.".lightred
when 'i686', 'x86_64'
system 'make'
else
puts "#{ARCH} architecture not supported.".lightred
end
system 'make'
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
puts ""
puts "To complete the installation, execute the following:".lightblue
puts "echo 'export PATH=$PATH:/usr/local/sbin' >> ~/.bashrc && source ~/.bashrc".lightblue
puts ""
case ARCH
when 'i686', 'x86_64'
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
puts ""
puts "To complete the installation, execute the following:".lightblue
puts "echo 'export PATH=$PATH:/usr/local/sbin' >> ~/.bashrc && source ~/.bashrc".lightblue
puts ""
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