You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2020/06/10 15:20:19 UTC

[whimsy] branch master updated: Use File.join for filename construction

This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new 1248896  Use File.join for filename construction
1248896 is described below

commit 12488962632e99d101f07625b6fc3ab145fb94b9
Author: Sebb <se...@apache.org>
AuthorDate: Wed Jun 10 16:20:09 2020 +0100

    Use File.join for filename construction
---
 www/board/agenda/views/actions/draft.json.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/board/agenda/views/actions/draft.json.rb b/www/board/agenda/views/actions/draft.json.rb
index 7879baa..e68e464 100644
--- a/www/board/agenda/views/actions/draft.json.rb
+++ b/www/board/agenda/views/actions/draft.json.rb
@@ -16,7 +16,7 @@ ASF::SVN.update minutes_file, @message, env, _ do |tmpdir, old_contents|
       File.join(tmpdir, File.basename(agenda_file))]
 
     # copy the agenda to the minutes (produces better diff)
-    _.system ['svn', 'cp', "#{tmpdir}/#{@agenda}",
+    _.system ['svn', 'cp', File.join(tmpdir, File.basename(@agenda)),
       File.join(tmpdir, File.basename(minutes_file))]
 
     @text