Converted deploy script to fish

This commit is contained in:
Erik C. Thauvin 2024-09-18 20:37:11 -07:00
parent 97e1e5e73b
commit 4b908d596e
Signed by: erik
GPG key ID: 776702A6A2DA330E
2 changed files with 11 additions and 11 deletions

11
deploy.fish Executable file
View file

@ -0,0 +1,11 @@
#!/usr/bin/env fish
./bld clean jar deploy
if test $status -eq 0
echo "cd /home/mobibot/mobitopia/mobibot
lcd deploy
put *.jar
cd lib
rm *.jar
put lib/*.jar" | sftp nix4
end

View file

@ -1,11 +0,0 @@
#!/bin/bash
./bld clean jar deploy
[ $? -eq 0 ] && sftp nix4.thauvin.us <<EOF
cd /home/mobibot/mobitopia/mobibot
lcd deploy
put *.jar
cd lib
rm *.jar
put lib/*.jar
EOF