Skip to content
Snippets Groups Projects
Commit 1b2dd8e3 authored by Benoit Lavenier's avatar Benoit Lavenier
Browse files

[fix] Minor change in comments

parent eaa3bfe7
No related branches found
No related tags found
No related merge requests found
Pipeline #5522 passed
...@@ -13,7 +13,7 @@ DIRNAME=`pwd` ...@@ -13,7 +13,7 @@ DIRNAME=`pwd`
### Get current version (package.json) ### Get current version (package.json)
current=`grep -oP "version\": \"\d+.\d+.\d+((a|b)[0-9]+)?" package.json | grep -oP "\d+.\d+.\d+((a|b)[0-9]+)?"` current=`grep -oP "version\": \"\d+.\d+.\d+((a|b)[0-9]+)?" package.json | grep -oP "\d+.\d+.\d+((a|b)[0-9]+)?"`
if [[ "_$current" == "_" ]]; then if [[ "_$current" == "_" ]]; then
echo "Unable to get current version. Please check version format is: x.y.z (x and y should be an integer)." echo "Unable to read the current version in 'package.json'. Please check version format is: x.y.z (x and y should be an integer)."
exit -1; exit -1;
fi fi
echo "Current version: $current" echo "Current version: $current"
...@@ -21,11 +21,12 @@ echo "Current version: $current" ...@@ -21,11 +21,12 @@ echo "Current version: $current"
### Get current version for Android ### Get current version for Android
currentAndroid=`grep -oP "android-versionCode=\"[0-9]+\"" config.xml | grep -oP "\d+"` currentAndroid=`grep -oP "android-versionCode=\"[0-9]+\"" config.xml | grep -oP "\d+"`
if [[ "_$currentAndroid" == "_" ]]; then if [[ "_$currentAndroid" == "_" ]]; then
echo "Unable to get current Android version. Please check version format is an integer." echo "Unable to read the current Android version in 'config.xml'. Please check version format is an integer."
exit -1; exit -1;
fi fi
echo "Current Android version: $currentAndroid" echo "Current Android version: $currentAndroid"
### Releasing ### Releasing
if [[ $2 =~ ^[0-9]+.[0-9]+.[0-9]+((a|b)[0-9]+)?$ && $3 =~ ^[0-9]+$ ]]; then if [[ $2 =~ ^[0-9]+.[0-9]+.[0-9]+((a|b)[0-9]+)?$ && $3 =~ ^[0-9]+$ ]]; then
...@@ -132,7 +133,7 @@ if [[ $2 =~ ^[0-9]+.[0-9]+.[0-9]+((a|b)[0-9]+)?$ && $3 =~ ^[0-9]+$ ]]; then ...@@ -132,7 +133,7 @@ if [[ $2 =~ ^[0-9]+.[0-9]+.[0-9]+((a|b)[0-9]+)?$ && $3 =~ ^[0-9]+$ ]]; then
description="$4" description="$4"
if [[ "_$description" == "_" ]]; then if [[ "_$description" == "_" ]]; then
description="Release v$1" description="Release v$2"
fi fi
echo "**********************************" echo "**********************************"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment