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
|
fi
|
||||||
|
|
||||||
dir=""
|
dir=""
|
||||||
typeset -i amt
|
amt=""
|
||||||
|
|
||||||
# Check if format is written text.
|
# Check if format is written text.
|
||||||
if [[ "$1" == "full" || "$1" == "max" ]]; then
|
if [[ "$1" == "full" || "$1" == "max" ]]; then
|
||||||
@@ -89,11 +89,15 @@ function volume {
|
|||||||
fi
|
fi
|
||||||
if [[ -n "$dir" && -z "$amt" ]]; then
|
if [[ -n "$dir" && -z "$amt" ]]; then
|
||||||
amt="$1"
|
amt="$1"
|
||||||
|
amt=${amt//-/}
|
||||||
|
amt=${amt//+/}
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
amt=${amt//-/}
|
# Check if format is direct volume.
|
||||||
amt=${amt//+/}
|
if [[ -z "$dir" && -z "$amt" && -n "$1" && -z "$2" ]]; then
|
||||||
|
amt="$1"
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ -n "$dir" && -n "$amt" ]]; then
|
if [[ -n "$dir" && -n "$amt" ]]; then
|
||||||
echo "> Changing volume by '$dir$amt%'."
|
echo "> Changing volume by '$dir$amt%'."
|
||||||
|
|||||||
Reference in New Issue
Block a user