Skip to content

Instantly share code, notes, and snippets.

@ldotlopez
ldotlopez / ldot-flac2mp3.sh
Last active December 15, 2015 06:59
Q&D flac2mp3 to be used with cron.
#!/bin/bash
# Configurables
LOC="${LOC:-$1}" # You can set LOC via env variable or argument
FLAC_BIN="${FLAC_BIN:-flac}"
METAFLAC_BIN="${METAFLAC_BIN:-metaflac}"
LAME_BIN="${LAME_BIN:-lame}"
ID3_BIN="${ID3_BIN:-id3tag}"
V="${V:-true}" # set to echo to enable debug
W="${W:-true}" # set to echo to enable warnings