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,13 +7,18 @@ case "$(uname)" in
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
if ! jq --version > /dev/null; then
|
if ! jq --version > /dev/null; then
|
||||||
echo -e "jq is not installed! Should the script install it for you? (y/n) \\c"
|
if $darwin; then
|
||||||
read -r REPLY
|
echo -e "jq is not installed! Should the script install it for you? (y/n) \\c"
|
||||||
if [ "$REPLY" = "y" ]; then
|
read -r REPLY
|
||||||
|
if [ "$REPLY" = "y" ]; then
|
||||||
brew install jq
|
brew install jq
|
||||||
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..."
|
||||||
@@ -62,12 +67,12 @@ fi
|
|||||||
|
|
||||||
if [ ! -d "$SPECS_DIR/FlipperKit/" ] # for file "if [-f /home/rama/file]"
|
if [ ! -d "$SPECS_DIR/FlipperKit/" ] # for file "if [-f /home/rama/file]"
|
||||||
then
|
then
|
||||||
mkdir "$SPECS_DIR/FlipperKit/"
|
mkdir "$SPECS_DIR/FlipperKit/"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -d "$SPECS_DIR/Flipper/" ] # for file "if [-f /home/rama/file]"
|
if [ ! -d "$SPECS_DIR/Flipper/" ] # for file "if [-f /home/rama/file]"
|
||||||
then
|
then
|
||||||
mkdir "$SPECS_DIR/Flipper/"
|
mkdir "$SPECS_DIR/Flipper/"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir "$SPECS_DIR/FlipperKit/$VERSION" # New Specs dir for FlipperKit podspec
|
mkdir "$SPECS_DIR/FlipperKit/$VERSION" # New Specs dir for FlipperKit podspec
|
||||||
|
|||||||
Reference in New Issue
Block a user