If the directory /usr/share/omf contains an empty subdirectory, a file *.omf.document is created:
]$ ls /usr/share/help/
Looks like a bug in process_dir() (in rarian-sk-update.in). There's a loop over all files in the directory:
for f in $1/*.omf; do
If there's nothing in the directory, then the glob pattern itself is treated as the loop value list rather than the (empty) list of the glob match. Crazy, no? Not sure the solution...I don't do much bash.
I guess one could test '-e $f' in the loop to make sure it's a real thing before processing it. Or else check that '$f != "*.omf"'. The bash manpage told me that this behavior is under the control of $nullglob, but I can get that to work (and having something that takes non-standard settings to "work" seems fragile/non-portable anyway).