]> arthur.barton.de Git - nagcollect.git/commitdiff
Don't exclude "." when extracting test scripts
authorAlexander Barton <alex@barton.de>
Wed, 2 Mar 2011 11:21:38 +0000 (12:21 +0100)
committerAlexander Barton <alex@barton.de>
Wed, 2 Mar 2011 11:21:38 +0000 (12:21 +0100)
This makes no difference on Mac OS X 10.6, but prevents tar(1) on
Mac OS X 10.5 from extracting any file at all ...

Most probably the intention has been to exclude .DS_Store files.

client/bin/nagcollect

index 8f07f3827fc7dbb02599ae555e352c9d4ffe58b8..71180a11718748a2b3e00a5c9af1b70dcb02976c 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/bash
 #
 # NagCollect -- Nagios Data Collector for Passive Checks
 #!/bin/bash
 #
 # NagCollect -- Nagios Data Collector for Passive Checks
-# Copyright (c)2009-2010 Alexander Barton, alex@barton.de
+# Copyright (c)2009-2011 Alexander Barton, alex@barton.de
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -36,7 +36,7 @@ function refreshTestScripts()
                Msg "Extracting scripts ..."
                mkdir -p /usr/local/lib/nagcollect
                tar xzf "$tmp" -C /usr/local/lib/nagcollect -po \
                Msg "Extracting scripts ..."
                mkdir -p /usr/local/lib/nagcollect
                tar xzf "$tmp" -C /usr/local/lib/nagcollect -po \
-                --exclude "._*" --exclude "." ; r=$?
+                --exclude "._*" --exclude ".DS_Store" ; r=$?
        fi
        chmod -R a+rX /usr/local/lib/nagcollect
        rm -f "$tmp"
        fi
        chmod -R a+rX /usr/local/lib/nagcollect
        rm -f "$tmp"