diff options
Diffstat (limited to '')
-rwxr-xr-x | test_.lua | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -53,6 +53,24 @@ local options = | |||
53 | ]=] | 53 | ]=] |
54 | end | 54 | end |
55 | }, | 55 | }, |
56 | install = | ||
57 | { | ||
58 | help = 'Command to install aataaj.lua', | ||
59 | func = function(self, options, a, args, i) | ||
60 | local w = __[[whoami]]:noErr():Do().lines[1] | ||
61 | local d = __[[pwd]]:noErr():Do().lines[1] | ||
62 | if 'root' ~= w then | ||
63 | E'Need to be root user to install.' | ||
64 | else | ||
65 | print('INSTALLING!!!') | ||
66 | __[[#!/bin/bash | ||
67 | echo "Installing PolygLua" | ||
68 | ./PolygLua.lua -vvvv | ||
69 | ]]:log():show():Do() | ||
70 | end | ||
71 | os.exit(0) | ||
72 | end | ||
73 | }, | ||
56 | } | 74 | } |
57 | options['restart'] = options['start'] | 75 | options['restart'] = options['start'] |
58 | options['force-reload'] = options['start'] | 76 | options['force-reload'] = options['start'] |