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:
committed by
Facebook Github Bot
parent
74d0ecac1b
commit
685be44187
@@ -7,6 +7,7 @@ case "$(uname)" in
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
if ! jq --version > /dev/null; then
|
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"
|
echo -e "jq is not installed! Should the script install it for you? (y/n) \\c"
|
||||||
read -r REPLY
|
read -r REPLY
|
||||||
if [ "$REPLY" = "y" ]; then
|
if [ "$REPLY" = "y" ]; then
|
||||||
@@ -14,6 +15,10 @@ if ! jq --version > /dev/null; then
|
|||||||
else
|
else
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
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
|
fi
|
||||||
|
|
||||||
echo "Checking for any uncommitted changes..."
|
echo "Checking for any uncommitted changes..."
|
||||||
@@ -22,7 +27,7 @@ echo "$CHANGES"
|
|||||||
|
|
||||||
if [ ! -z "$CHANGES" ];
|
if [ ! -z "$CHANGES" ];
|
||||||
then
|
then
|
||||||
echo "There are uncommitted changes, either commit it or revert them."
|
echo "There are uncommitted changes, either commit or revert them."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -38,7 +43,7 @@ FLIPPERKIT_VERSION_TAG='flipperkit_version'
|
|||||||
OLD_VERSION_POD_ARG=$(< "$FLIPPER_PODSPEC_PATH" grep "$FLIPPERKIT_VERSION_TAG =" )
|
OLD_VERSION_POD_ARG=$(< "$FLIPPER_PODSPEC_PATH" grep "$FLIPPERKIT_VERSION_TAG =" )
|
||||||
OLD_VERSION="${OLD_VERSION_POD_ARG##* }"
|
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
|
read -r VERSION
|
||||||
|
|
||||||
echo "Updating version $VERSION in podspecs, podfiles and in getting started docs..."
|
echo "Updating version $VERSION in podspecs, podfiles and in getting started docs..."
|
||||||
|
|||||||
Reference in New Issue
Block a user