Don't extract ._* and . from tests archive
[nagcollect.git] / client / bin / nagcollect
index 4203b8f71e47f45f839a1d2ea7f4d41896b0603c..d466a8ca92ebde32e5921c84aa827a24f0242613 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