Refactor: pre-commit cleanups
[releng/global-jjb.git] / shell / sigul-sign.sh
index d5c674f..ca476ea 100644 (file)
@@ -20,9 +20,9 @@ find "${SIGN_DIR}" -type f ! -name "*.asc" \
         ! -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
 
@@ -30,7 +30,7 @@ files_to_sign=()
 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..."