1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-12 10:55:20 +02:00

improve bash script

quoting
order of redirects
This commit is contained in:
Marcus Holl 2018-11-05 10:50:03 +01:00
parent 5145f5180d
commit 0c3f11bbc9

View File

@ -1,6 +1,6 @@
#!/bin/bash
export CLASSPATH_FILE='cp.txt'
mvn dependency:build-classpath -Dmdep.outputFile=${CLASSPATH_FILE} 2>&1 > /dev/null
mvn dependency:build-classpath -Dmdep.outputFile=${CLASSPATH_FILE} > /dev/null 2>&1
#~/Library/groovy-2.4.13/bin/groovy -cp src:`cat $CLASSPATH_FILE` createDocu
groovy -cp src:`cat $CLASSPATH_FILE` createDocu $@
groovy -cp "src:`cat $CLASSPATH_FILE`" createDocu "${@}"