From faf818cebe7737ebd019abde98f3f0a0eb9f6515 Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 25 Jul 2024 18:06:12 -0400 Subject: [PATCH] fixup --- src/sum.sh | 5 ++--- src/sum.sh.sha256 | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/sum.sh b/src/sum.sh index aad2702..1089c53 100644 --- a/src/sum.sh +++ b/src/sum.sh @@ -1,9 +1,8 @@ # /etc/profile.d/sum.sh -# Ensure the script is sourced, not executed -if [[ "$0" == "${BASH_SOURCE[0]}" ]] || [[ "$0" == "${(%):-%x}" ]]; then +if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then echo "This script should be sourced, not executed." - return 1 2>/dev/null || exit 1 + exit 1 fi # Function to generate SHA-256 hashes for .sh files in a given directory diff --git a/src/sum.sh.sha256 b/src/sum.sh.sha256 index 9af9f6b..3b57738 100644 --- a/src/sum.sh.sha256 +++ b/src/sum.sh.sha256 @@ -1 +1 @@ -4f1ce7aae33e2ecbaf27cb28ab7fad332f4f65e814d79fdda70e07f118f2d808 +7846925456f82da2e475833061a4ee605302d3db001d0df8c1678d71e9329896