This commit is contained in:
Your Name 2024-07-25 18:06:12 -04:00
parent 99008185b4
commit faf818cebe
2 changed files with 3 additions and 4 deletions

View File

@ -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

View File

@ -1 +1 @@
4f1ce7aae33e2ecbaf27cb28ab7fad332f4f65e814d79fdda70e07f118f2d808
7846925456f82da2e475833061a4ee605302d3db001d0df8c1678d71e9329896