Skip to content

Commit ea3413c

Browse files
committed
v10.0.0
1 parent f883a9d commit ea3413c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

script/release

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66
set -e
77

8-
usage() {
9-
echo "Usage: $0 [-r] Tags and releases/publishes octokit" 1>&2; exit 1;
8+
usage() {
9+
echo "Usage: $0 [-r] Tags and releases/publishes octokit" 1>&2; exit 1;
1010
}
1111

1212
while [ $# -gt 0 ]
@@ -35,9 +35,9 @@ else
3535
./script/package
3636

3737
# We need to pull the version from the actual file that is about to be published
38-
file=$(ls pkg/*.gem | sort | tail -1)
39-
version=$(echo $file | sed -e 's/.*octokit-\(.*\).gem.*/\1/')
40-
38+
file=$(ls pkg/*.gem | sort -V | tail -1)
39+
version=$(echo $file | sed -e 's/.*octokit-\(.*\).gem.*/\1/')
40+
4141
[ -n "$version" ] || exit 1
4242

4343
echo "*** Tagging and publishing $version of octokit ***"

0 commit comments

Comments
 (0)