From 8b74b54ad7cd901489b9dfcb871eaa9baf631560 Mon Sep 17 00:00:00 2001 From: Tuukka Lehtonen Date: Sat, 22 Feb 2020 20:15:11 +0200 Subject: [PATCH] Fixed signing problems with directories containing whitespace gitlab #468 Change-Id: Iec62b603024dd362a9e69676bb5fdf0617d1b966 --- releng/org.simantics.sdk.build.p2.site/sign.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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 -- 2.47.1