NurseBot/buildtools/deploy.sh

21 lines
228 B
Bash
Raw Normal View History

2018-07-10 19:40:22 +00:00
#!/bin/bash
DEPLOY_DIR=$1
VERSIONS=./versions
VERSION=$2
pushd $DEPLOY_DIR
2018-07-13 15:54:40 +00:00
file=$VERSIONS/NurseBot$VERSION.jar
if test ! -f $file; then
echo "Version not found."
exit 1
fi
2018-07-10 19:40:22 +00:00
unlink NurseBot.jar
2018-07-13 15:54:40 +00:00
ln $file NurseBot.jar
2018-07-10 19:40:22 +00:00
popd