Skip to content

Commit

Permalink
use os-agnostic delimiters
Browse files Browse the repository at this point in the history
  • Loading branch information
mhkeller committed Nov 25, 2015
1 parent b44516a commit 26ef19e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ Deploying will create a commit and push it to `origin master` with the following
An example would look like:

````
prod::my-sync-password::my-project-folder::2014/my-project-folder-on-s3::2015-01-01 13:00
prod::my-sync-password::my-project-folder::2014>>my-project-folder-on-s3::2015-01-01 13:00
````

**Note**: Kestrel uses `:` and `>` to encode its commands so it's best to avoid these characters in your file names.

For more information, [check out the Wiki](https://github.com/mhkeller/kestrel/wiki/Command-line-interface#3-usage).
2 changes: 1 addition & 1 deletion bin/deploy-prompts.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function getLocalDeployDirChoices(){

// Add repo-name
var dirs_with_basename = dirs.map(function(dir){
return repo_name + '/' + dir; // Don't use `path.join` for os-specific paths because it needs to be the linux path for the server
return [repo_name, dir].join('>>'); // Use this as the file delimiter to avoid os-mismatch between client and server
})
return [repo_name].concat(dirs_with_basename);
}
Expand Down

0 comments on commit 26ef19e

Please sign in to comment.