From: Alexander Barton Date: Wed, 2 Mar 2011 11:21:38 +0000 (+0100) Subject: Don't exclude "." when extracting test scripts X-Git-Tag: rel-3~16 X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=nagcollect.git;a=commitdiff_plain;h=056ef7ba5258f0b0ec75447f38c800f25315cce3;hp=5e5e98448a519f2f6803ac2aa7e807ac4ed00628 Don't exclude "." when extracting test scripts 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. --- diff --git a/client/bin/nagcollect b/client/bin/nagcollect index 8f07f38..71180a1 100755 --- a/client/bin/nagcollect +++ b/client/bin/nagcollect @@ -1,7 +1,7 @@ #!/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 @@ -36,7 +36,7 @@ function refreshTestScripts() 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"