From bfd522c7f85595380be14b09e36769d19b3b9a54 Mon Sep 17 00:00:00 2001 From: Micheal Wall Date: Sat, 9 May 2020 19:07:04 -0500 Subject: [PATCH] sshfs: bugfix for status not reporting properly --- modules/sshfs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/sshfs b/modules/sshfs index 8f1f2e5..0468bab 100755 --- a/modules/sshfs +++ b/modules/sshfs @@ -32,7 +32,8 @@ function stop { } function status { - if pgrep sshfs > /dev/null; then echo "1"; else echo "0"; fi + pidof sshfs > /dev/null + if [ $? -eq 0 ]; then echo "1"; else echo "0"; fi } function configure {