ChromaCore/deploy.sh

11 lines
375 B
Bash
Raw Normal View History

2017-08-15 01:03:39 +00:00
#!/bin/sh
2019-03-30 22:48:50 +00:00
FILENAME=$(find ButtonCore/target/ -maxdepth 1 ! -name '*original*' ! -name '*sources*' -name '*.jar')
2017-08-15 01:03:39 +00:00
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/TBMC/pluginupdates
2017-08-15 01:03:39 +00:00
fi