summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <david@rawr.am>2010-11-17 02:06:28 -0800
committerDavid Vazgenovich Shakaryan <david@rawr.am>2010-11-17 02:06:28 -0800
commit8a937f9c9706accce14022b1252784fa45677b69 (patch)
treeac278cd6a2c39d9a3ed0eb554b173274d1da6a0c
parent5e77c74057e2167bbebabacd14790aa10476d93e (diff)
If distro not detected, exit with error exit code.
-rw-r--r--archey.new2
1 files changed, 2 insertions, 0 deletions
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))