From 42a1e7632f063ce4eb7a219f03ceaf82c435d46b Mon Sep 17 00:00:00 2001 From: dvs1 Date: Mon, 4 Nov 2024 11:20:10 +1000 Subject: Add install command to test_ as well. --- test_.lua | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/test_.lua b/test_.lua index 872bea7..9e1931a 100755 --- a/test_.lua +++ b/test_.lua @@ -53,6 +53,24 @@ local options = ]=] end }, + install = + { + help = 'Command to install aataaj.lua', + func = function(self, options, a, args, i) + local w = __[[whoami]]:noErr():Do().lines[1] + local d = __[[pwd]]:noErr():Do().lines[1] + if 'root' ~= w then + E'Need to be root user to install.' + else + print('INSTALLING!!!') + __[[#!/bin/bash + echo "Installing PolygLua" + ./PolygLua.lua -vvvv + ]]:log():show():Do() + end + os.exit(0) + end + }, } options['restart'] = options['start'] options['force-reload'] = options['start'] -- cgit v1.1