NurseBot/buildtools/deploy.sh
2018-07-13 17:54:40 +02:00

20 lines
228 B
Bash
Executable file

#!/bin/bash
DEPLOY_DIR=$1
VERSIONS=./versions
VERSION=$2
pushd $DEPLOY_DIR
file=$VERSIONS/NurseBot$VERSION.jar
if test ! -f $file; then
echo "Version not found."
exit 1
fi
unlink NurseBot.jar
ln $file NurseBot.jar
popd