Added more verbosity
This commit is contained in:
parent
2dad9781eb
commit
143a1dfa81
@ -124,6 +124,7 @@ ConvertFiles() {
|
|||||||
mkdir -p "/tmp/converted/${line%/*}";
|
mkdir -p "/tmp/converted/${line%/*}";
|
||||||
fi;
|
fi;
|
||||||
lame -q 0 -b 192 $source/$line /tmp/converted/$line 1>/dev/null 2>/dev/null
|
lame -q 0 -b 192 $source/$line /tmp/converted/$line 1>/dev/null 2>/dev/null
|
||||||
|
VerboseOutput "Info" "Converted $line"
|
||||||
done < "/tmp/music-sync-filelist"
|
done < "/tmp/music-sync-filelist"
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -136,11 +137,14 @@ CopyFiles() {
|
|||||||
fi;
|
fi;
|
||||||
cp -f $source/$line $dest/$line # 1>/dev/null 2>/dev/null
|
cp -f $source/$line $dest/$line # 1>/dev/null 2>/dev/null
|
||||||
done < "/tmp/music-sync-filelist"
|
done < "/tmp/music-sync-filelist"
|
||||||
|
VerboseOutput "Info" "Copied $line"
|
||||||
}
|
}
|
||||||
|
|
||||||
CleanUp() {
|
CleanUp() {
|
||||||
|
VerboseOutput "Info" "Cleaning Up"
|
||||||
rm "/tmp/music-sync-filelist"
|
rm "/tmp/music-sync-filelist"
|
||||||
rm "/tmp/converted"
|
rm "/tmp/converted"
|
||||||
|
VerboseOutput "Info" "Done"
|
||||||
}
|
}
|
||||||
|
|
||||||
GetOptions $@
|
GetOptions $@
|
||||||
|
Loading…
Reference in New Issue
Block a user