From 8a937f9c9706accce14022b1252784fa45677b69 Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Wed, 17 Nov 2010 02:06:28 -0800 Subject: If distro not detected, exit with error exit code. --- archey.new | 2 ++ 1 file changed, 2 insertions(+) diff --git a/archey.new b/archey.new index 1a7ced6..70a40b3 100644 --- a/archey.new +++ b/archey.new @@ -116,6 +116,8 @@ class Output: def __detectDistro(self): if os.path.exists('/etc/pacman.conf'): return 'Arch Linux' + else: + sys.exit(1) def append(self, display): self.results.append('%s%s: %s%s' % (colorDict[self.distro][1], display.key, colorDict['Clear'][0], display.value)) -- cgit v1.2.3