diff options
| author | dvs1 | 2024-11-04 11:20:10 +1000 |
|---|---|---|
| committer | dvs1 | 2024-11-04 11:20:10 +1000 |
| commit | 42a1e7632f063ce4eb7a219f03ceaf82c435d46b (patch) | |
| tree | 75e957cea69793ee7a6204274bca47f99b2045d8 | |
| parent | Let user know we are installing things. (diff) | |
| download | JackOnAllDevices-42a1e7632f063ce4eb7a219f03ceaf82c435d46b.zip JackOnAllDevices-42a1e7632f063ce4eb7a219f03ceaf82c435d46b.tar.gz JackOnAllDevices-42a1e7632f063ce4eb7a219f03ceaf82c435d46b.tar.bz2 JackOnAllDevices-42a1e7632f063ce4eb7a219f03ceaf82c435d46b.tar.xz | |
Add install command to test_ as well.
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'] |
