]> git.armaanb.net Git - asd-repo.git/commitdiff
kiss-serv: updates, bugfixes
authorArmaan Bhojwani <me@armaanb.net>
Wed, 31 Mar 2021 15:47:42 +0000 (11:47 -0400)
committerArmaan Bhojwani <me@armaanb.net>
Wed, 31 Mar 2021 15:47:42 +0000 (11:47 -0400)
kiss-serv/checksums
kiss-serv/depends
kiss-serv/files/kiss-send-build
kiss-serv/files/kiss-serv
kiss-serv/version

index 499c41ed501b7fcc14320a21088506be359a7f46..22dd18ba82050a47654b1794895ec679a7cfff1c 100644 (file)
@@ -1,2 +1,2 @@
-2117150c3c1361a2d6e6d35d455a6772401b4c4a643d6171720e39f7e0d2ae15
-8fc4f646db823150c76ff84c4648f261376263de512934ecd325703aad61e9f4
+ab642b01282ce92aba462be2a579adb4691dc7c316ced87b7af55b928d6ea381
+0473fcb2d926b00521761ee2ead683c30778a44017ff0fb1895d31dd91ef51eb
index c587eb20928b3363763da5721e84b25cb326ba4a..d245e276734ff002c5ed0f3c6ac8eb5d8b87eb62 100644 (file)
@@ -1,2 +1,2 @@
-ssh
+openssh
 rsync
index 72c3d84a1ae3f83b95a28e410b0628bd9be93b0b..f819dc01459c07ffab7c7bc5f92c62a5d4161e01 100755 (executable)
@@ -35,16 +35,17 @@ sshexec() {
 }
 
 get() {
-  contents=$sshcmd 'ls -1 ~/.cache/kiss/bin/'
-  pkg=$(echo $contents | sort | grep -m 1 "$2")
-  rsync -azre "ssh -p $sshcmd" "$user"@"$host":/home/"$user"/.cache/kiss/bin/"$pkg" \
+  pkg=$($sshcmd 'ls -1 ~/.cache/kiss/bin/' | sort | grep -m 1 "$2")
+  rsync -azre "ssh -p $port" "$user@$host":/home/"$user"/.cache/kiss/bin/"$pkg" \
     ~/.cache/kiss/bin
+  echo "fetched $pkg from $host"
+  exit
 }
 
 port=${KISS_SERV_PORT:-22}
 host=${KISS_SERV_HOST:-localhost}
 user=${KISS_SERV_USER:-$(whoami)}
-sshcmd="ssh -p $port $user@$host"
+sshcmd="ssh -p $port $user@$host env KISS_PATH=$KISS_PATH"
 
 while [ "$1" != "" ]; do
   case $1 in
@@ -52,10 +53,7 @@ while [ "$1" != "" ]; do
       usage
       exit
       ;;
-    build)
-      build "$@"
-      ;;
-    status | get)
+    status | build)
       sshexec "$@"
       ;;
     get)
index 4943b1af7fa77493871b59825e9cb5a0bde9b037..e9f753f6122175967038d1a88bd4aa4bb072b055 100755 (executable)
@@ -11,14 +11,16 @@ parse_err() {
 }
 
 build() {
-  kiss build $2
+  nohup sh -c "yes | kiss build $2" &
+  exit
 }
 
 status() {
   echo "built packages:"
   ls -1 ~/.cache/kiss/bin
-  echo "running kiss proceses:"
-  pgrep -a kiss
+  echo "\nrunning kiss proceses:"
+  pgrep -fa kiss
+  exit
 }
 
 sshcmd="ssh -p ${KISS_SERV_PORT:-22} ${KISS_SERV_HOST:-localhost}"
index a383ea1a01de3491869bf41c5737ff747d4ede4c..4d544ed8d7a7e3bd0d6597e19f888827dd72c39b 100644 (file)
@@ -1 +1 @@
-git 1
+0.0.0 1