From: Tuukka Lehtonen Date: Sat, 22 Feb 2020 18:15:11 +0000 (+0200) Subject: Fixed signing problems with directories containing whitespace X-Git-Tag: v1.43.0~88 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=8b74b54ad7cd901489b9dfcb871eaa9baf631560;p=simantics%2Fplatform.git Fixed signing problems with directories containing whitespace gitlab #468 Change-Id: Iec62b603024dd362a9e69676bb5fdf0617d1b966 --- diff --git a/releng/org.simantics.sdk.build.p2.site/sign.sh b/releng/org.simantics.sdk.build.p2.site/sign.sh index 04dc13228..79319ec43 100755 --- a/releng/org.simantics.sdk.build.p2.site/sign.sh +++ b/releng/org.simantics.sdk.build.p2.site/sign.sh @@ -19,7 +19,7 @@ signprops=$2 tsa=$3 function signprop { - grep "${1}" ${signprops}|cut -d'=' -f2 + grep "${1}" "${signprops}"|cut -d'=' -f2 } echo "----" @@ -32,24 +32,24 @@ keyalias=$(signprop 'jarsigner.alias') storepass=$(signprop 'jarsigner.storepass') keypass=$(signprop 'jarsigner.keypass') -for jar in `find ${dir}/target/repository/plugins/ -type f -not -ipath '*.source_*.jar'`; do +for jar in `find "${dir}/target/repository/plugins/" -type f -not -ipath '*.source_*.jar'`; do echo "----" if [ -z ${tsa} ]; then echo "Signing $jar" - jarsigner -keystore ${keystore} \ + jarsigner -keystore "${keystore}" \ -storepass ${storepass} \ -keypass ${keypass} \ -verbose \ - $jar \ + "$jar" \ ${keyalias} else echo "Signing and timestamping $jar" - jarsigner -keystore ${keystore} \ + jarsigner -keystore "${keystore}" \ -storepass ${storepass} \ -keypass ${keypass} \ -verbose \ -tsa "${tsa}" \ - $jar \ + "$jar" \ ${keyalias} fi done