Add back in direct volume assignment, may have been cut and not copied back in. Re-test to ensure all is working well.
This commit is contained in:
@@ -49,7 +49,7 @@ function volume {
|
||||
fi
|
||||
|
||||
dir=""
|
||||
typeset -i amt
|
||||
amt=""
|
||||
|
||||
# Check if format is written text.
|
||||
if [[ "$1" == "full" || "$1" == "max" ]]; then
|
||||
@@ -89,11 +89,15 @@ function volume {
|
||||
fi
|
||||
if [[ -n "$dir" && -z "$amt" ]]; then
|
||||
amt="$1"
|
||||
amt=${amt//-/}
|
||||
amt=${amt//+/}
|
||||
fi
|
||||
fi
|
||||
|
||||
amt=${amt//-/}
|
||||
amt=${amt//+/}
|
||||
# Check if format is direct volume.
|
||||
if [[ -z "$dir" && -z "$amt" && -n "$1" && -z "$2" ]]; then
|
||||
amt="$1"
|
||||
fi
|
||||
|
||||
if [[ -n "$dir" && -n "$amt" ]]; then
|
||||
echo "> Changing volume by '$dir$amt%'."
|
||||
|
||||
Reference in New Issue
Block a user