Make regexp to match fpm's output slightly more robust.
authorWard Vandewege <ward@curoverse.com>
Fri, 19 Sep 2014 20:46:10 +0000 (16:46 -0400)
committerWard Vandewege <ward@curoverse.com>
Fri, 19 Sep 2014 20:46:10 +0000 (16:46 -0400)
no issue #

jenkins/run-build-packages.sh

index 98449746d4a100c46270e19d39b375cc52cec596..ce9b8f72afc13f5d8df0526db7bd68c503e7612c 100755 (executable)
@@ -108,7 +108,7 @@ build_and_scp_deb () {
   echo ${COMMAND_ARR[@]}
 
   FPM_PACKAGE_NAME=''
-  if [[ $FPM_RESULTS =~ ([A-Za-z0-9_\-.]*.deb) ]]; then
+  if [[ $FPM_RESULTS =~ ([A-Za-z0-9_\-.]*\.deb) ]]; then
     FPM_PACKAGE_NAME=${BASH_REMATCH[1]}
   fi