[dak/master] Fix versionregex conversion
Signed-off-by: Mark Hymers <email@example.com>
scripts/debian/byhand-di | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/scripts/debian/byhand-di b/scripts/debian/byhand-di
index 99cb313..f8e5f6b 100755
@@ -54,7 +54,8 @@ if [ -d "$TARGET/$VERSION" ]; then
# We know the VERSION is sane by here, we just need to make sure we escape the + in +b1 (if any)
-VERSIONREGEXP="$(echo $VERSION | sed 's@+@\\\+@')"
+# It needs 'g' as well as we may have +$DIST+b[0-9]
+VERSIONREGEXP="$(echo $VERSION | sed 's@+@\\\+@g')"
# We know all data to be in ./installer-<arch>/<version>; see if there's
# anything else in the tarball except that and the 'current' symlink