mirror of
https://github.com/koreader/koreader
synced 2024-10-31 21:20:20 +00:00
02fcb9037b
Thanks to @Markismus's questions, I realized that some of what i thought
was true, wasn't.
First, pkill is a terrible idea to check for interpreted scripts.
Second, pidof is also potentially not that great for interpreted
scripts, because it'll only work with a shebang, and one that is
following the Linux syntax.
We don't have the full version with the -x to paper over that,
so use pgrep -f instead.
cf.
|
||
---|---|---|
.. | ||
fmon | ||
koreader.sh | ||
nickel.sh | ||
suspend.sh |