Converted deploy script to fish
This commit is contained in:
parent
97e1e5e73b
commit
4b908d596e
2 changed files with 11 additions and 11 deletions
11
deploy.fish
Executable file
11
deploy.fish
Executable 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
|
11
deploy.sh
11
deploy.sh
|
@ -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
|
|
Loading…
Add table
Add a link
Reference in a new issue