Don't extract ._* and . from tests archive
[nagcollect.git] / client / bin / nagcollect
index 4203b8f..d466a8c 100755 (executable)
@@ -29,7 +29,7 @@ function refreshTestScripts()
                # Update local test scripts
                Msg "Extracting scripts ..."
                mkdir -p /usr/local/lib/nagcollect
-               tar xzf "$tmp" -C /usr/local/lib/nagcollect ; r=$?
+               tar xzf "$tmp" -C /usr/local/lib/nagcollect --exclude "._*" --exclude "." ; r=$?
        fi
        rm -f "$tmp"
        return $r