diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2011-03-30 01:51:10 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2011-03-30 01:52:17 +0200 |
commit | 5760cb8538815f3b6a49412eb8fe637804bd6938 (patch) | |
tree | ec2df08f0bb7cbd179e4f2a4f1c84147d577d72b | |
parent | f7ee5fd62456c34e2bf3a87e866adb70083f1414 (diff) | |
download | dotfiles-5760cb8538815f3b6a49412eb8fe637804bd6938.tar.gz dotfiles-5760cb8538815f3b6a49412eb8fe637804bd6938.tar.xz dotfiles-5760cb8538815f3b6a49412eb8fe637804bd6938.zip |
fixed md5 hashing check of symlink-mapping for OpenBSD
-rw-r--r-- | bashrc/main.sh | 8 |
1 files changed, 7 insertions, 1 deletions
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!" |