From 5760cb8538815f3b6a49412eb8fe637804bd6938 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Wed, 30 Mar 2011 01:51:10 +0200 Subject: fixed md5 hashing check of symlink-mapping for OpenBSD --- bashrc/main.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/bashrc/main.sh b/bashrc/main.sh index f4fb0d9..21f08d1 100644 --- a/bashrc/main.sh +++ b/bashrc/main.sh @@ -24,7 +24,13 @@ _self_update() { git merge origin/master if [[ -e management/symlinks.md5 ]]; then - md5sum -c management/symlinks.md5 --status 2>/dev/null + if hash md5sum 2> /dev/null ; then + md5sum -c management/symlinks.md5 --status 2>/dev/null + else + if hash md5 2> /dev/null ; then + md5 -c /management/symlinks.md >/dev/null + fi + fi if [[ $? -ne 0 ]]; then echo -e "\033[33m*\033[0m symlink mapping changed!" -- cgit v1.2.3