Teaspeak-Server/server/VersionHelper.sh

13 lines
203 B
Bash
Raw Normal View History

#!/usr/bin/env bash
if [ -e "build.data" ]; then
2020-01-23 20:57:58 -05:00
echo "File exists"
DATA=$(cat "build.data")
else
2020-01-23 20:57:58 -05:00
echo "Create new file"
echo "0" > "build.data"
fi
DATA=$(($DATA+1))
echo "Data: $DATA"