Skip to content

Commit

Permalink
Adding quotes to FTP local files
Browse files Browse the repository at this point in the history
Actions on local files failing if they contain spaces since they are not
quoted.
  • Loading branch information
Chuck Mac committed Nov 26, 2014
1 parent 7a3ab95 commit 9dcea1c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/wordmove/deployer/ftp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def push_db
# remove dump remotely
remote_delete(remote_dump_path)
# and locally
run "rm #{local_dump_path}"
run "rm \"#{local_dump_path}\""
end

def pull_db
Expand All @@ -50,7 +50,7 @@ def pull_db
run mysql_import_command(local_dump_path, local_options[:database])

# and locally
run "rm #{local_dump_path}"
run "rm \"#{local_dump_path}\""
end

private
Expand Down Expand Up @@ -120,7 +120,7 @@ def import_remote_dump
# run import script
import_url = "#{remote_wp_content_dir.url("import.php")}?shared_key=#{one_time_password}&start=1&foffset=0&totalqueries=0&fn=dump.sql"
download(import_url, temp_path)
run "rm #{temp_path}"
run "rm \"#{temp_path}\""
# remove script remotely
remote_delete(remote_import_script_path)
end
Expand Down

0 comments on commit 9dcea1c

Please sign in to comment.