From b81d86ef9a6e286efdaf7f574a105ab416928551 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Fri, 28 Feb 2025 23:55:18 +0200 Subject: fix --- lib/dslkeywords/file.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/dslkeywords/file.rb b/lib/dslkeywords/file.rb index 5230a3f..aa1b725 100644 --- a/lib/dslkeywords/file.rb +++ b/lib/dslkeywords/file.rb @@ -320,7 +320,11 @@ module RCM end do? "Copying #{source_path} -> #{@file_path} resursively" do - Dir["#{source_path}/*"].each { FileUtils.cp_r(_1, @file_path) } + if File.directory?(@file_path) + Dir["#{source_path}/*"].each { FileUtils.cp_r(_1, @file_path) } + else + FileUtils.cp_r(source_path, @file_path) + end end end -- cgit v1.2.3