diff --git a/readme.md b/readme.md index 96dd8ef..6a0a809 100644 --- a/readme.md +++ b/readme.md @@ -103,5 +103,4 @@ from various contexts of CA, CI and OCI / OS. ### .sh -* check if file & variable match * support opensuse diff --git a/spcd.sh b/spcd.sh index e7c4f6a..32be9e9 100644 --- a/spcd.sh +++ b/spcd.sh @@ -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