[omd-commits] OMD Git: omd: Fixed detection of broken links

git version control git at mathias-kettner.de
Wed Jun 20 15:25:27 CEST 2012


Module:   omd
Branch:   master
Commit:   21c501e7b6903bd991280463c9503e740e769f9e
URL:      http://omdistro.org/projects/omd/repository/revisions/21c501e7b6903bd991280463c9503e740e769f9e

Author:   Mathias Kettner <mk at mathias-kettner.de>
Date:     Wed Jun 20 15:25:23 2012 +0200
Commiter: Mathias Kettner <mk at mathias-kettner.de>
Date:     Wed Jun 20 15:25:23 2012 +0200

Fixed detection of broken links

---

 packages/omd/CORE.hook |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/packages/omd/CORE.hook b/packages/omd/CORE.hook
index 865363a..00fd983 100755
--- a/packages/omd/CORE.hook
+++ b/packages/omd/CORE.hook
@@ -13,7 +13,8 @@
 # target of the link exists
 make_link ()
 {
-    if [ -e "$1" ] ; then
+    rel_dir=${2%/*}
+    if [ -e "$rel_dir/$1" ] ; then
         ln -sfn "$1" "$2"
     fi
 }



More information about the omd-commits mailing list