mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 10:09:53 +01:00
update Rakefile
This commit is contained in:
parent
4035ae4c7f
commit
242bc96556
1 changed files with 2 additions and 1 deletions
3
Rakefile
3
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|
|
||||
|
|
Loading…
Reference in a new issue