Switched to PircbotX 2.4-SNAPSHOT

This commit is contained in:
Erik C. Thauvin 2022-09-04 09:51:50 -07:00
parent afece310d2
commit d6c0b99869
7 changed files with 27 additions and 20 deletions

View file

@ -1,12 +1,11 @@
#!/bin/bash
DEPLOYDIR=/home/erik/mobitopia/mobibot
if [ -f "deploy/mobibot.jar" ]; then
/bin/cp deploy/mobibot.jar $DEPLOYDIR
rm -rf $DEPLOYDIR/lib/*.jar
cp deploy/lib/*.jar $DEPLOYDIR/lib
chmod 755 $DEPLOYDIR/*.jar $DEPLOYDIR/lib/*.jar
else
echo "mobibot.jar not found."
fi
./gradlew deploy
[ $? -eq 0 ] && sftp nix3.thauvin.us <<EOF
cd mobitopia/mobibot
lcd deploy
put *.jar
cd lib
rm *.jar
put lib/*.jar
EOF