fi
}
+ExistsBasicProgramms() {
+ local exists=true
+
+ if [ ! -f /usr/bin/eyeD3 ]; then
+ printf "eyeD3 not installed\n"
+ exists=false
+ fi
+
+ if [ ! -f /usr/bin/flac ]; then
+ printf "flac not installed\n"
+ exists=false
+ fi
+
+ if [ ! -f /usr/bin/lame ]; then
+ printf "lame not installed\n"
+ exists=false
+ fi
+
+ if [ ! -f /usr/bin/sha256sum ]; then
+ printf "sha256sum not installed"
+ exists=false
+ fi
+
+ if [ ! -f /usr/bin/7z ]; then
+ printf "7-zip not installed"
+ exists=false
+ fi
+
+ if [ ! -f /usr/bin/parallel ]; then
+ printf "parallel not installed"
+ exists=false
+ fi
+
+ if [ $exists == false ]; then
+ exit 1
+ fi
+}
+
main() {
WORK="$(pwd)/work.$$" # temporary working directory
SCRIPTPATH="/usr/bin" # path to flactomp3v2 and notify.sh script
MUSICPATH="/tmp/musikpath" # flac collection directory
+ ExistsBasicProgramms
LoadConfig
ExistsScripts "$SCRIPTPATH"