ChromaCore/deploy.sh
Norbi Peti bdf824e20e Plugin update on shutdown+fromcmd
Fromcmd: whether a message was sent by using a command
Yesterday
2018-05-07 20:01:36 +02:00

11 lines
333 B
Bash
Executable file

#!/bin/sh
FILENAME=$(find target/ -maxdepth 1 ! -name '*original*' -name '*.jar')
echo Found file: $FILENAME
if [ $1 = 'production' ]; then
echo Production mode
echo $UPLOAD_KEY > upload_key
chmod 400 upload_key
yes | scp -B -i upload_key -o StrictHostKeyChecking=no $FILENAME travis@server.figytuna.com:/minecraft/main/plugins
fi