Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Build: Changed dest path format so rsync will create destination dire…

…ctory when needed
  • Loading branch information...
commit babbae7c397205172f82b404e1ce005186077d9a 1 parent f87ccfb
@gseguin gseguin authored
Showing with 2 additions and 8 deletions.
  1. +2 −8 build/tasks/rsync.js
View
10 build/tasks/rsync.js
@@ -15,7 +15,7 @@ module.exports = function ( grunt ) {
grunt.registerMultiTask( "rsync", "Copy files to a (remote) machine with rsync.", function () {
var done = this.async(),
options = _.clone( this.options({
- user: "",
+ user: process.env.USER,
host: "localhost",
cwd: ".",
remoteBase: "~",
@@ -94,13 +94,7 @@ module.exports = function ( grunt ) {
async.forEach(
filePair.src,
function(src, next) {
- if ( detectDestType( filePair.dest ) === 'directory') {
- dest = ( isExpandedPair ) ? filePair.dest : unixifyPath( path.join( filePair.dest, path.relative( options.cwd, src ) ));
- } else {
- dest = path.relative( options.cwd, filePair.dest );
- }
-
- dest = url + dest;
+ dest = url + filePair.dest;
grunt.log.writeln( "Copying '" + src + "' to '" + dest + "'" );
grunt.util.spawn(
{
Please sign in to comment.
Something went wrong with that request. Please try again.