From bd91d87542aa1da889f88470a4cde2a3e4ba0560 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Mon, 29 Jul 2024 21:03:31 +0200 Subject: [PATCH] =?UTF-8?q?wc=20=E2=86=92=20ls?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spcd.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/spcd.sh b/spcd.sh index 78c0412..de5db94 100644 --- a/spcd.sh +++ b/spcd.sh @@ -707,8 +707,10 @@ ${spcd_ipm__url} exit spcd_ipm__script="${spcd_ipm__root}/${spcd_ipm__name}/spcd.sh" if [ -f "${spcd_ipm__script}" ]; then - echo "${SPCD}" | sha256sum - echo "${SPCD}" | wc -c + spcd_ipm__file="${spcd_ipm__root}/spcd.sh" + echo "${SPCD}" > "${spcd_ipm__file}" + ls -l "${spcd_ipm__file}" + sha256sum "${spcd_ipm__file}" sha256sum "${spcd_ipm__script}" fi spcd_ipm__path="${spcd_ipm__root}/${spcd_ipm__name}/${spcd_ipm__name}"