aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordvs12024-11-04 11:20:10 +1000
committerdvs12024-11-04 11:20:10 +1000
commit42a1e7632f063ce4eb7a219f03ceaf82c435d46b (patch)
tree75e957cea69793ee7a6204274bca47f99b2045d8
parentLet user know we are installing things. (diff)
downloadJackOnAllDevices-42a1e7632f063ce4eb7a219f03ceaf82c435d46b.zip
JackOnAllDevices-42a1e7632f063ce4eb7a219f03ceaf82c435d46b.tar.gz
JackOnAllDevices-42a1e7632f063ce4eb7a219f03ceaf82c435d46b.tar.bz2
JackOnAllDevices-42a1e7632f063ce4eb7a219f03ceaf82c435d46b.tar.xz
Add install command to test_ as well.
-rwxr-xr-xtest_.lua18
1 files changed, 18 insertions, 0 deletions
diff --git a/test_.lua b/test_.lua
index 872bea7..9e1931a 100755
--- a/test_.lua
+++ b/test_.lua
@@ -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}
57options['restart'] = options['start'] 75options['restart'] = options['start']
58options['force-reload'] = options['start'] 76options['force-reload'] = options['start']