Release 2.2

- Switch to hybrid S6
- **Added --regex option** TheCaptain989/lidarr-flac2mp3#33
- **Added optional use of environment variable** TheCaptain989/lidarr-flac2mp3#33
- **Added new --tags option to resolve TheCaptain989/lidarr-flac2mp3#15**
- Added checks for identical track name
- Recycled files are now moved to subdirectory paths that more closely resemble the original path
- Better error handling in awk script when calling system commands
- Added logging for skipped tracks
- Corrected some logging anomalies
- Modified exit codes
- Updated command line help
- Fixed missing executable attribute on some script files
- Updated README
This commit is contained in:
TheCaptain989
2022-11-27 09:56:09 -06:00
parent a5b136d992
commit 64b36034ee
7 changed files with 313 additions and 100 deletions
-1
View File
@@ -44,4 +44,3 @@ if [ ! -x /usr/local/bin/flac2mp3.sh ]; then
echo "Making scripts executable."
chmod +x /usr/local/bin/flac2*.sh
fi
@@ -13,19 +13,24 @@ EOF
# Determine if setup is needed
if [ ! -f /usr/bin/ffmpeg ]; then
echo "**** Adding ffmpeg to package install list ****"
echo "ffmpeg" >> /mod-repo-packages-to-install.list
echo "**** Adding ffmpeg to package install list ****"
echo "ffmpeg" >> /mod-repo-packages-to-install.list
else
echo "**** flac2mp3 deps already installed, skipping ****"
fi
# Change ownership
if [ $(stat -c '%G' /usr/local/bin/flac2mp3.sh) != "abc" ]; then
echo "Changing ownership on scripts."
chown abc:abc /usr/local/bin/flac2*.sh
fi
# Make executable
if [ ! -x /usr/local/bin/flac2mp3.sh ]; then
echo "Making scripts executable."
chmod +x /usr/local/bin/flac2*.sh
fi
# Check ownership and attributes on each script file
for file in /usr/local/bin/flac2mp3*.sh
do
# Change ownership
if [ $(stat -c '%G' $file) != "abc" ]; then
echo "Changing ownership on $file script."
chown abc:abc $file
fi
# Make executable
if [ ! -x $file ]; then
echo "Making $file script executable."
chmod +x $file
fi
done