summaryrefslogtreecommitdiff
path: root/src/bin/vol-dec
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/vol-dec')
-rw-r--r--src/bin/vol-dec8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bin/vol-dec b/src/bin/vol-dec
index 1a76527..28b9834 100644
--- a/src/bin/vol-dec
+++ b/src/bin/vol-dec
@@ -1,7 +1,7 @@
-#!/bin/bash
+#!/bin/sh
-source functions
+. functions
function main {
@@ -13,8 +13,8 @@ function main {
vol=$(expr $vol - 3)
# Make sure to not exceed limits.
- if [ $vol -lt 0 ]; then vol=0 ; fi
- if [ $vol -gt 100 ]; then vol=100; fi
+ if test $vol -lt 0; then vol=0 ; fi
+ if test $vol -gt 100; then vol=100; fi
# Set calculated volume
my-pa-setdefaultsinkvolpercent $vol