From b450c9534c622d4ecc233ea1241ba76954eb999b Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Tue, 30 Jul 2024 00:29:45 +0200 Subject: [PATCH] check matching --- readme.md | 1 - spcd.sh | 14 +++++++------- 2 files changed, 7 insertions(+), 8 deletions(-) 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