getvol: se reemplaza echo por printf

This commit is contained in:
Tuxliban Torvalds 2022-05-11 02:29:09 -05:00
parent 1e7495f748
commit 6a961aa08e
1 changed files with 4 additions and 3 deletions

View File

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