diff options
author | David Vazgenovich Shakaryan <david@rawr.am> | 2010-11-17 02:06:28 -0800 |
---|---|---|
committer | David Vazgenovich Shakaryan <david@rawr.am> | 2010-11-17 02:06:28 -0800 |
commit | 8a937f9c9706accce14022b1252784fa45677b69 (patch) | |
tree | ac278cd6a2c39d9a3ed0eb554b173274d1da6a0c | |
parent | 5e77c74057e2167bbebabacd14790aa10476d93e (diff) |
If distro not detected, exit with error exit code.
-rw-r--r-- | archey.new | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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)) |