2022-03-22 16:12:14 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# NOTE: This is copy/pasted in jenkins
|
|
|
|
|
|
|
|
rm -f version.txt
|
|
|
|
printf "versionName=$1-github\nversionCode=$1" >> version.txt
|
|
|
|
|
2022-09-14 10:32:00 +00:00
|
|
|
if [[ "$@" == *'--from-ci'* ]]
|
|
|
|
then
|
|
|
|
echo "File created. HANDLE IN CI"
|
|
|
|
else
|
|
|
|
# You'll need to change server as your server and define a VERSION_PATH.
|
|
|
|
scp version.txt server:$VERSION_PATH
|
|
|
|
rm version.txt
|
|
|
|
fi
|