mirror of
https://github.com/munin-monitoring/muninlite.git
synced 2024-12-22 05:42:13 +01:00
muninlite: do not crash if empty line is received (#8)
Trivial fix for the following error: root@naru:~# echo "" | ./muninlite ./muninlite: line 696: do_: not found root@naru:~#
This commit is contained in:
parent
e6f5722a04
commit
ebd0cca326
1 changed files with 1 additions and 1 deletions
|
@ -119,7 +119,7 @@ do
|
|||
arg1=$(echo "$arg1" | xargs)
|
||||
if ! echo "$FUNCTIONS" | grep -qwF "$arg0"; then
|
||||
echo "# Unknown command. Try $(echo "$FUNCTIONS" | sed -e 's/\( [[:alpha:]]\{1,\}\)/,\1/g' -e 's/,\( [[:alpha:]]\{1,\}\)$/ or\1/')"
|
||||
else
|
||||
elif [ -n "$arg0" ]; then
|
||||
"do_$arg0" "$arg1"
|
||||
fi
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue