From 69306fecdf218e998a3ac9ea6756c5a599e30978 Mon Sep 17 00:00:00 2001 From: Strix Date: Thu, 6 Jun 2024 02:21:18 +0200 Subject: [PATCH] feat: more a3 stuff --- bin/sc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/sc b/bin/sc index 71bbe8d..256e8cb 100755 --- a/bin/sc +++ b/bin/sc @@ -23,14 +23,14 @@ for host in $SC_HOSTS; do case $command in install) if [ "$host" = "local" ]; then - escalate_command a3 ./meta.a3 install + escalate_command a3 ./meta.a3 ${2:-install} else LOGI "attempting to install on $host..." if ! ssh $host "command -v a3"; then LOGI "no a3, installing..." - ssh -t $host "git clone https://git.saluco.nl/strix/aaa /tmp/a3 && cd /tmp/a3 && sudo A3_LIB=./lib bin/a3 ./meta.a3 install; rm -rf /tmp/a3" + ssh -t $host "git clone https://git.saluco.nl/strix/aaa /tmp/a3 && cd /tmp/a3 && sudo A3_LIB=./lib bin/a3 ./meta.a3 ${2:-install}; rm -rf /tmp/a3" fi - ssh $host "git clone https://git.saluco.nl/strix/sconnect /tmp/sconnect && cd /tmp/sconnect && sudo a3 /tmp/sconnect/main.a3 install; rm -rf /tmp/sconnect" + ssh $host "git clone https://git.saluco.nl/strix/sconnect /tmp/sconnect && cd /tmp/sconnect && sudo a3 ./meta.a3 ${2:-install}; rm -rf /tmp/sconnect" LOGI "installed" fi ;;