#!/usr/bin/env bash

script_name=$(basename "$0")

for file in ./*; do
    if [ -f "$file" ] && [[ ! $file =~ \.sh$ ]] && [[ ! $file =~ \.sha256$ ]] && [[ $(basename "$file") != "$script_name" ]]; then
	sha256sum "$file" > "${file}.sha256"
    fi
done
