Need some help with my post processing script
Posted: June 12th, 2009, 8:46 am
Hi guys,
I've got a script I use for everything and I've recently added some logic to it to look for .FLAC files in the download folder. However, this is seeing EVERYTHING I download as a FLAC so apparently my logic is wrong:
FLACFolder is defined earlier in the code. This "mv" code works, it's the finding of the FLAC files that does not work. Any ideas guys? Thanks!
I've got a script I use for everything and I've recently added some logic to it to look for .FLAC files in the download folder. However, this is seeing EVERYTHING I download as a FLAC so apparently my logic is wrong:
Code: Select all
If [ -n "$1/*.flac" ]; then
mv -f "$1" "$1 (FLAC)"
mv -f "$1 (FLAC)" "$FLACFolder"
mv -f "$1" "$FLACFolder/$3 (FLAC)"
exit
fi