debogage des fonctions sayvol et sayspd

This commit is contained in:
jhechavarria
2018-08-23 01:46:11 +02:00
parent 0181a38d06
commit 02b96ef485

4
say.sh
View File

@@ -74,7 +74,7 @@ saylng ()
sayvol()
{
cfg=`cat $CFGPATH`;
if [$# -ge 1 ]; then
if [ $# -ge 1 ]; then
if [ $# -ge 2 ]; then
num=`echo "0 + $2" | bc`;
if [ `echo "$num >= 0 && $num <= 2" | bc` -eq 1 ]; then
@@ -93,7 +93,7 @@ sayvol()
sayspd()
{
cfg=`cat $CFGPATH`;
if [$# -ge 1 ]; then
if [ $# -ge 1 ]; then
if [ $# -ge 3 ]; then
num=`echo "0 + $3" | bc`;
if [ `echo "$num >= 0.5 && $num <= 1.5" | bc` -eq 1 ]; then