minor fixes and cleanups
This commit is contained in:
parent
d9a58c7c55
commit
bab1242817
11 changed files with 74 additions and 54 deletions
|
|
@ -54,7 +54,11 @@ opts_data = {
|
|||
|
||||
cmd_args = opts.init(opts_data)
|
||||
|
||||
if len(cmd_args): opts.usage()
|
||||
if g.platform == 'linux' and os.getenv('USER') != 'root':
|
||||
die(1,'This program must be run as root')
|
||||
|
||||
if len(cmd_args):
|
||||
opts.usage()
|
||||
|
||||
mod_dir = os.path.split(normalize_path(modpath_save))[0]
|
||||
mod_pardir = os.path.split(mod_dir)[0]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue