From 88aef83798d4e6c8a6bc01d9f09984230ee463bd Mon Sep 17 00:00:00 2001 From: Dmitry Isaenko Date: Tue, 26 Jul 2022 20:06:14 +0300 Subject: [PATCH] escape newlines --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 0d57eb6..c40f83f 100644 --- a/.drone.yml +++ b/.drone.yml @@ -24,7 +24,7 @@ steps: - name: emerge-legacy-artifact image: maven:3-jdk-11 commands: - - sed -z -i -e 's/org.usb4java<\/groupId>\n\s*usb4java<\/artifactId>\s*1.3.0<\/version>/org.usb4java<\/groupId>\nusb4java<\/artifactId>\n1.2.0<\/version>/g' pom.xml + - sed -z -i -e 's/org.usb4java<\/groupId>\\n\s*usb4java<\/artifactId>\s*1.3.0<\/version>/org.usb4java<\/groupId>\\nusb4java<\/artifactId>\\n1.2.0<\/version>/g' pom.xml - sed -z -i -e 's/$\{project.artifactId\}-$\{project.version\}-$\{maven.build.timestamp\}<\/finalName>/$\{project.artifactId\}-legacy-$\{project.version\}-$\{maven.build.timestamp\}<\/finalName>/g' pom.xml - mvn -B -DskipTests clean package - cp target/ns-usbloader-*jar /builds/ns-usbloader/