Skip to content

Commit 264d932

Browse files
committed
Filter out tags/* branches that aren't revision numbers.
- Legacy-Id: 4708
1 parent 48baaa1 commit 264d932

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/mkdevbranch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function version() {
2828
#[ $1 -gt 70 ] || die "Expected the ietf number as argument on the command line, but found '$1'"
2929

3030
#if [ "$1" ]; then arg=$1; else arg=$(svn info http://svn.tools.ietf.org/svn/tools/ietfdb/trunk/ | egrep "^Last Changed Rev" | awk '{print $4}'); fi
31-
if [ "$1" ]; then arg=$1; else arg=$(svn ls http://svn.tools.ietf.org/svn/tools/ietfdb/tags/ | tail -n 1 | sed -r 's/^(.*)\/$/v\1/' ); fi
31+
if [ "$1" ]; then arg=$1; else arg=$(svn ls http://svn.tools.ietf.org/svn/tools/ietfdb/tags/ | egrep '^[0-9]' | tail -n 1 | sed -r 's/^(.*)\/$/v\1/' ); fi
3232

3333
if [ "${arg:0:1}" = "v" ]; then
3434
source="tags/${arg:1}"

0 commit comments

Comments
 (0)