NurseBot/buildtools/versions.sh
2018-07-10 21:40:22 +02:00

8 lines
182 B
Bash
Executable file

#!/bin/bash
DEPLOY_DIR=$1
VERSIONS=./versions
ls $DEPLOY_DIR/$VERSIONS/*.jar | while read file; do
echo $file | awk -F"NurseBot" '{ print $2 }' | awk -F".jar" '{ print $1 }'
done