From 242bc965567ac1e11d27854381ccbdebc85447a6 Mon Sep 17 00:00:00 2001 From: nilsding Date: Fri, 27 Mar 2015 18:06:30 +0100 Subject: [PATCH] update Rakefile --- Rakefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index 9bda58b7..61aa95b2 100644 --- a/Rakefile +++ b/Rakefile @@ -366,7 +366,8 @@ namespace :justask do `mkdir -p /tmp/rs_export/#{export_dirname}/picture` if u.profile_picture %i(large medium small original).each do |s| - `cp #{u.profile_picture.path s} /tmp/rs_export/#{export_dirname}/picture/#{s}_#{File.basename u.profile_picture.path}` + x = u.profile_picture.path(s).gsub('"', '\\"') + `cp "#{x}" "/tmp/rs_export/#{export_dirname}/picture/#{s}_#{File.basename x}"` end end File.open "/tmp/rs_export/#{export_dirname}/#{export_filename}.json", 'w' do |f|