Add sha256sum function, if not installed

This commit is contained in:
Jan Jastrow 2022-05-19 15:44:43 +02:00
parent 47ddcdb913
commit b0ba5d1cc8

View File

@ -12,6 +12,14 @@ function mkcd() {
mkdir -p "$@" && cd "$_";
}
# "Fake" sha256sum
if [[ -x `which sha256sum` ]]; then
function sha256sum() {
shasum -a256 $1
}
fi
# pushover notification
function pushover() {
curl -s \