sshfs: bugfix for status not reporting properly

pull/36/head
Micheal Wall 2020-05-09 19:07:04 -05:00
parent 85ea267c89
commit bfd522c7f8
1 changed files with 2 additions and 1 deletions

View File

@ -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 {