1
0

relative volume works again

This commit is contained in:
dtb 2022-07-15 22:11:18 -04:00
parent e54dae0a8f
commit 1ba5208e58

View File

@ -134,7 +134,9 @@ m*) [ -z "$2" ] || usage
exit 0 ;;
r*)
! newval=$(printf "%s %s + p\n" $("$argv0"s) "$2" | dc) \
set -x
argv2="$(printf "%s\n" "$2" | tr - _)"
! newval=$(printf "%s %s + p\n" $("$argv0" s) "$argv2" | dc) \
&& printf "%b: Error finding new value for volume.\n" "$argv0" \
&& exit 1
"$argv0" a "$newval"