mirror of
https://github.com/cheat/cheat.git
synced 2025-09-01 09:38:29 +02:00
Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
f0cbc2df7b | |||
2f56270ded |
@ -38,7 +38,7 @@ from docopt import docopt
|
||||
|
||||
if __name__ == '__main__':
|
||||
# parse the command-line options
|
||||
options = docopt(__doc__, version='cheat 2.0.1')
|
||||
options = docopt(__doc__, version='cheat 2.0.2')
|
||||
|
||||
# list directories
|
||||
if options['--directories']:
|
||||
|
@ -9,7 +9,7 @@ def default_path():
|
||||
# the default path becomes confused when cheat is run as root, so fail
|
||||
# under those circumstances. (There is no good reason to need to run cheat
|
||||
# as root.)
|
||||
if os.geteuid() == 0:
|
||||
if os.name != 'nt' and os.geteuid() == 0:
|
||||
die('Please do not run this application as root.');
|
||||
|
||||
# determine the default cheatsheet dir
|
||||
|
Reference in New Issue
Block a user