Do not print out bash lines
[releng/builder.git] / jjb / autorelease / include-raw-autorelease-release-versions.sh
index 8e209fee60b0a5c5540264075fff294b0647e13e..0b38f0ee081549f07041083a0cdd8644b1b80c1d 100644 (file)
@@ -26,7 +26,7 @@ fi
 source "$LFTOOLS_DIR/bin/activate"
 
 # Directory to put git format-patches
-PATCH_DIR="$(pwd)/patches"
+PATCH_DIR="$WORKSPACE/patches"
 
 echo "$RELEASE_TAG"
 lftools version release "$RELEASE_TAG"
@@ -43,8 +43,5 @@ for module in $modules; do
     popd
 done
 
-tar cvzf all-bundles.tar.gz "$(find "$PATCH_DIR" -type f -print0 \
-                                | xargs -0r file             \
-                                | egrep -e ':.*Git bundle.*' \
-                                | cut -d: -f1)"
+tar cvzf patches.tar.gz -C "$WORKSPACE" patches
 rm "$PATCH_DIR"/*.bundle