getvol: se reemplaza echo por printf
This commit is contained in:
parent
1e7495f748
commit
6a961aa08e
|
@ -1,8 +1,9 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
vol_on=$(amixer get Master | tail -n 1 | cut -d ' ' -f 8)
|
vol_on=$(amixer get Master | tail -n 1 | cut -d ' ' -f 8)
|
||||||
vol=$(amixer get Master | awk -F'[][]' 'END{ print $2 }')
|
vol=$(amixer get Master | awk -F'[][]' 'END{ print $2 }')
|
||||||
|
|
||||||
if [ "$vol_on" = '[on]' ]; then
|
if [ "$vol_on" = '[on]' ]; then
|
||||||
echo " $vol";
|
printf '%s\n' " $vol";
|
||||||
else
|
else
|
||||||
printf " \n";
|
printf '%s\n' "mute ﱝ \n";
|
||||||
fi;
|
fi
|
||||||
|
|
Loading…
Reference in New Issue