summaryrefslogtreecommitdiff
path: root/slider
diff options
context:
space:
mode:
authorzachir <zachir@librem.one>2025-08-30 09:55:12 -0500
committerzachir <zachir@librem.one>2025-08-30 09:55:12 -0500
commita062b9fd9bcba2bbae0ab65453c7ceddce67b871 (patch)
tree9cab6f4b737c9b386824f2458d7e55aaf970411b /slider
parent1b94482d3b93a0ffbe3216765948a9c60b9d6a91 (diff)
Shellcheck all the scripts
Diffstat (limited to 'slider')
-rwxr-xr-xslider4
1 files changed, 2 insertions, 2 deletions
diff --git a/slider b/slider
index 6f3752f..bb45058 100755
--- a/slider
+++ b/slider
@@ -10,7 +10,7 @@
# Application cache if not stated elsewhere.
cache="${XDG_CACHE_HOME:-$HOME/.cache}/slider"
-while getopts "hvrpi:c:a:o:d:f:t:e:x:" o; do case "${o}" in
+while getopts "hvrpi:c:a:o:d:f:t:e:x:s:" o; do case "${o}" in
c) bgc="$OPTARG" ;;
t) fgc="$OPTARG" ;;
i) file="$OPTARG" ;;
@@ -65,7 +65,7 @@ if [ -n "${audio+x}" ]; then
audio/*) ;;
*) echo "That doesn't look like an audio file."; exit 1 ;;
esac
- totseconds="$(date '+%s' -d $(ffmpeg -i "$audio" 2>&1 | awk '/Duration/ {print $2}' | sed s/,//))"
+ totseconds="$(date '+%s' -d "$(ffmpeg -i "$audio" 2>&1 | awk '/Duration/ {print $2}' | sed s/,//)")"
endtime="$((totseconds-seconds))"
fi