dvehrs / podget

Podcast aggregator optimized for running as a scheduled job (i.e. cron) on Linux
GNU General Public License v3.0
114 stars 13 forks source link

script speedup.sh has a zsh shebang and a ".sh" extension #77

Closed m040601 closed 2 months ago

m040601 commented 2 months ago

Thanks for the continued work on podget. Very appreciated. I use it with newsboat.

I was casually checking .sh shell scripts in my system using,

Name            : checkbashisms
Version         : 2.23.7-1
Description     : Debian script that checks for bashisms
URL             : https://tracker.debian.org/pkg/devscripts
Packager        : George Rawlinson <grawlinson@archlinux.org>

It warned me this,

script /usr/share/podget/scripts/v0.8.5/speedup.sh does not appear to be a /bin/sh script; skipping

And indeed, that /usr/share/podget/scripts/v0.8.5/speedup.sh,

#!/bin/zsh
# faster mp3 playback https://superuser.com/questions/519649/tool-to-bulk-speed-up-convert-an-audio-file
for i in $*;do
  ffmpeg -i $i -filter:a "atempo=1.6" -c:a libmp3lame -q:a 4 -vsync 2 ~/speedup/$i
done

Has a zsh shebang but is named with a .sh extension.

dvehrs commented 2 months ago

I don't think we should make any changes to this file for the following reasons:

Thanks, Dave