Small fixes to bump-version.sh

Summary: Indentation, abort jq installation on non-Darwin, spelling.

Reviewed By: jknoxville

Differential Revision: D13801766

fbshipit-source-id: 2e2e45806b43ff78d6c6d2e5a4ab166dd8d043b1
This commit is contained in:
Pascal Hartig
2019-01-24 11:12:30 -08:00
committed by Facebook Github Bot
parent 74d0ecac1b
commit 685be44187

View File

@@ -7,6 +7,7 @@ case "$(uname)" in
esac
if ! jq --version > /dev/null; then
if $darwin; then
echo -e "jq is not installed! Should the script install it for you? (y/n) \\c"
read -r REPLY
if [ "$REPLY" = "y" ]; then
@@ -14,6 +15,10 @@ if ! jq --version > /dev/null; then
else
exit 1
fi
else
echo >&2 "jq is not installed. Please install it using your platform's package manager (apt-get, yum, pacman, etc.)."
exit 1
fi
fi
echo "Checking for any uncommitted changes..."
@@ -22,7 +27,7 @@ echo "$CHANGES"
if [ ! -z "$CHANGES" ];
then
echo "There are uncommitted changes, either commit it or revert them."
echo "There are uncommitted changes, either commit or revert them."
exit 1
fi
@@ -38,7 +43,7 @@ FLIPPERKIT_VERSION_TAG='flipperkit_version'
OLD_VERSION_POD_ARG=$(< "$FLIPPER_PODSPEC_PATH" grep "$FLIPPERKIT_VERSION_TAG =" )
OLD_VERSION="${OLD_VERSION_POD_ARG##* }"
echo "Currently released version is $OLD_VERSION, What should the version of the next release be?"
echo "The currently released version is $OLD_VERSION. What should the version of the next release be?"
read -r VERSION
echo "Updating version $VERSION in podspecs, podfiles and in getting started docs..."