Commit 1b2dd8e3 authored by Benoit Lavenier's avatar Benoit Lavenier

[fix] Minor change in comments

parent eaa3bfe7
Pipeline #5522 passed with stages
in 8 minutes and 24 seconds
......@@ -13,7 +13,7 @@ DIRNAME=`pwd`
### 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]+)?"`
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;
fi
echo "Current version: $current"
......@@ -21,11 +21,12 @@ echo "Current version: $current"
### Get current version for Android
currentAndroid=`grep -oP "android-versionCode=\"[0-9]+\"" config.xml | grep -oP "\d+"`
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;
fi
echo "Current Android version: $currentAndroid"
### Releasing
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"
if [[ "_$description" == "_" ]]; then
description="Release v$1"
description="Release v$2"
fi
echo "**********************************"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment