fastfix, mpc 0.33 can't status

This commit is contained in:
паша душный 2023-05-23 16:25:17 +03:00
parent 2ddab7cc39
commit e94df854a3
1 changed files with 2 additions and 1 deletions

View File

@ -3,7 +3,8 @@
: "${1?How to use: $0 minutes}"
var_sec=$((${1} * 60 ))
var_vol=$(mpc status %volume% | tr -d ' ,%')
# var_vol=$(mpc status %volume% | tr -d ' ,%')
var_vol=$(mpc volume | tr -d '[:punct:], ,[:alpha:]')
time_step=$(( "$var_sec" / 12 ))
vol_step=$(( "$var_vol" /12 ))