The previous implementation uses `total` keyword to filter out lines that contains the total size of objects under a directory. But when the OS uses other language, it fails to filter out that line, so the script would fail.
This implementation changes the script to match only lines that contains object file by their extension. This implementation would be language neutral.
Before HashedDictionary.cpp exceeds 50MiB, now:
-rw-r--r-- 1 azat azat 37M Nov 22 17:56 SparseHashedDictionary.cpp.o
-rw-r--r-- 1 azat azat 34M Nov 22 17:56 HashedDictionary.cpp.o
-rw-r--r-- 1 azat azat 716K Nov 22 17:56 registerHashedDictionary.cpp.o
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>