Skip to content

Commit

Permalink
Fix codestyle
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienball committed Apr 18, 2019
1 parent dc8227b commit 698d19f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

/target
**/*.rs.bk
Cargo.lock
Expand Down
4 changes: 2 additions & 2 deletions update_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ set -e

NEW_VERSION=$1

if [ -z $NEW_VERSION ]; then
if [[ -z ${NEW_VERSION} ]]; then
echo "Usage: $0 NEW_VERSION"
exit 1
fi

SPLIT_VERSION=( ${NEW_VERSION//./ } )
if [ ${#SPLIT_VERSION[@]} -ne 3 ]; then
if [[ ${#SPLIT_VERSION[@]} -ne 3 ]]; then
echo "Version number is invalid (must be of the form x.y.z)"
exit 1
fi
Expand Down

0 comments on commit 698d19f

Please sign in to comment.