summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bashrc/main.sh8
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!"