! -name "_remote.repositories" \
! -name "*.lastUpdated" \
! -name "maven-metadata-local.xml" \
- ! -name "maven-metadata.xml" > ${WORKSPACE}/sign.lst
+ ! -name "maven-metadata.xml" > "${WORKSPACE}/sign.lst"
-if [ -s ${WORKSPACE}/sign.lst ]; then
+if [ -s "${WORKSPACE}/sign.lst" ]; then
echo "Sign list is not empty"
fi
while IFS= read -rd $'\n' line; do
files_to_sign+=("$line")
sigul --batch -c "${SIGUL_CONFIG}" sign-data -a -o "${line}.asc" "${SIGUL_KEY}" "${line}" < "${SIGUL_PASSWORD}"
-done < ${WORKSPACE}/sign.lst
+done < "${WORKSPACE}/sign.lst"
if [ "${#files_to_sign[@]}" -eq 0 ]; then
echo "ERROR: No files to sign. Quitting..."