mirror of
https://github.com/cimryan/teslausb.git
synced 2026-03-01 04:30:33 +00:00
Don't attempt to fix errors in the music file when there is no music file.
This commit is contained in:
@@ -188,9 +188,12 @@ function mount_and_fix_errors_in_cam_file () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function mount_and_fix_errors_in_music_file () {
|
function mount_and_fix_errors_in_music_file () {
|
||||||
ensure_music_file_is_mounted
|
if [ -e "$MUSIC_MOUNT" ]
|
||||||
fix_errors_in_music_file
|
then
|
||||||
unmount_music_file
|
ensure_music_file_is_mounted
|
||||||
|
fix_errors_in_music_file
|
||||||
|
unmount_music_file
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function mount_and_fix_errors_in_files () {
|
function mount_and_fix_errors_in_files () {
|
||||||
@@ -233,4 +236,4 @@ do
|
|||||||
archive_clips
|
archive_clips
|
||||||
|
|
||||||
wait_for_archive_to_be_unreachable
|
wait_for_archive_to_be_unreachable
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user