lib/vagrant/zscp/helper.rb in vagrant-zscp-0.1.3 vs lib/vagrant/zscp/helper.rb in vagrant-zscp-0.1.4
- old
+ new
@@ -26,11 +26,11 @@
remotely_execute(ssh_info, "sudo rm -rf #{guestpath}; sudo mkdir -p #{guestpath}; sudo chown #{username}:$(id -gn) #{guestpath}")
temp_file = `mktemp -t 'temp.XXXX.tar.gz'`.strip
machine.ui.info("Compressing #{hostpath} into #{temp_file}")
- system("tar -czLf #{temp_file} -C #{hostpath} #{included_files}")
+ system("tar -czhf #{temp_file} -C #{hostpath} #{included_files}")
machine.ui.info("Copying #{temp_file} to #{guestpath}")
command = [
"scp",
'-o StrictHostKeyChecking=no',
@@ -59,6 +59,6 @@
].join(' ')
system(ssh_command)
end
end
end
-end
\ No newline at end of file
+end