check matching
Some checks are pending
/ job (push) Has started running

This commit is contained in:
Marc Beninca 2024-07-30 00:29:45 +02:00
parent 6f6fc9d061
commit b450c9534c
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F
2 changed files with 7 additions and 8 deletions

View file

@ -103,5 +103,4 @@ from various contexts of CA, CI and OCI / OS.
### .sh
* check if file & variable match
* support opensuse

14
spcd.sh
View file

@ -721,13 +721,13 @@ ${SPCD_PYTHON_PACKAGES}"
spcd_ipm__script="${spcd_ipm__root}/${spcd_ipm__name}/spcd.sh"
if [ -f "${spcd_ipm__script}" ]; then
spcd_split
spcd_ipm__file="${spcd_ipm__root}/spcd.sh"
printf "%s" "${SPCD}" >"${spcd_ipm__file}"
ls -l "${spcd_ipm__file}"
dos2unix "${spcd_ipm__file}"
ls -l "${spcd_ipm__file}"
sha512sum "${spcd_ipm__file}"
sha512sum "${spcd_ipm__script}"
spcd_ipm__check="${spcd_ipm__root}/check.sha512sum"
sha512sum "${spcd_ipm__script}" > "${spcd_ipm__check}"
printf "%s" "${SPCD}" >"${spcd_ipm__script}"
ls -l "${spcd_ipm__script}"
dos2unix "${spcd_ipm__script}"
ls -l "${spcd_ipm__script}"
sha512sum -c "${spcd_ipm__check}" || spcd_error_ci "SPCD"
fi
done
spcd_split