From b4456e323ac9d26114bda7ba538a9eff4519e9f1 Mon Sep 17 00:00:00 2001
From: Calvin Walton <calvin.walton@kepstin.ca>
Date: Wed, 24 Jun 2020 11:42:58 -0400
Subject: [PATCH] Skip copying presentation thumbnails if they don't exist

---
 .../presentation/scripts/process/presentation.rb                | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/record-and-playback/presentation/scripts/process/presentation.rb b/record-and-playback/presentation/scripts/process/presentation.rb
index f74075080f..abf7f79069 100755
--- a/record-and-playback/presentation/scripts/process/presentation.rb
+++ b/record-and-playback/presentation/scripts/process/presentation.rb
@@ -195,7 +195,7 @@ if not FileTest.directory?(target_dir)
       end
 
       # Copy thumbnails from raw files
-      FileUtils.cp_r("#{pres_dir}/thumbnails", "#{target_pres_dir}/thumbnails")
+      FileUtils.cp_r("#{pres_dir}/thumbnails", "#{target_pres_dir}/thumbnails") if File.exist?("#{pres_dir}/thumbnails")
     end
 
     BigBlueButton.logger.info("Generating closed captions")
-- 
GitLab