diff options
author | zachir <zachir@librem.one> | 2025-08-30 09:55:12 -0500 |
---|---|---|
committer | zachir <zachir@librem.one> | 2025-08-30 09:55:12 -0500 |
commit | a062b9fd9bcba2bbae0ab65453c7ceddce67b871 (patch) | |
tree | 9cab6f4b737c9b386824f2458d7e55aaf970411b /slider | |
parent | 1b94482d3b93a0ffbe3216765948a9c60b9d6a91 (diff) |
Shellcheck all the scripts
Diffstat (limited to 'slider')
-rwxr-xr-x | slider | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |