tsa=$3
function signprop {
- grep "${1}" ${signprops}|cut -d'=' -f2
+ grep "${1}" "${signprops}"|cut -d'=' -f2
}
echo "----"
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