Skip to content

Commit 19e726e

Browse files
authored
Merge pull request #2961 from jsquyres/pr/v1.10.x/nightly-script-updates
v1.10: nightly script updates
2 parents 57edbdb + 74a3f52 commit 19e726e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

contrib/nightly/create_tarball.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# University of Stuttgart. All rights reserved.
1111
# Copyright (c) 2004-2005 The Regents of the University of California.
1212
# All rights reserved.
13-
# Copyright (c) 2006-2016 Cisco Systems, Inc. All rights reserved.
13+
# Copyright (c) 2006-2017 Cisco Systems, Inc. All rights reserved.
1414
# $COPYRIGHT$
1515
#
1616
# Additional copyrights may follow
@@ -34,7 +34,7 @@ gitbranch=$5
3434

3535
# Set this to any value for additional output; typically only when
3636
# debugging
37-
debug=1
37+
: ${debug:=}
3838

3939
# do you want a success mail?
4040
want_success_mail=1
@@ -195,7 +195,7 @@ if test -f "$destdir/latest_snapshot.txt"; then
195195
# Snip the timestamp out of the versions and compare just
196196
# ${BRANCHNAME}-${SHORTHASH}.
197197
compare_version="$gitbranch-$githash"
198-
compare_snapshot_version=`echo $snapshot_version | perl -pi -e 's/^([a-z]+)-(\d+)-(.*+)$/$1-$3/'`
198+
compare_snapshot_version=`echo $snapshot_version | perl -p -e 's/^(.+?)-(\d+)-(.*+)$/$1-$3/'`
199199
if test "$compare_version" = "$compare_snapshot_version"; then
200200
if test -n "$debug"; then
201201
echo "*** Our branch/git hash is the same as the last snapshot -- not doing anything"

0 commit comments

Comments
 (0)