Permalink
Browse files

fixed versions for downloaded modules

  • Loading branch information...
1 parent 75fcab1 commit 3404e56e186fc529766926fab5f90738a120bee9 @Shogun147 committed Oct 27, 2012
Showing with 3 additions and 3 deletions.
  1. +2 −2 bin/katana
  2. +1 −1 modules.json
View
@@ -256,7 +256,7 @@ App.command('modules-install <name> [url]')
}
}
- url = 'https://github.com/'+ username +'/'+ repository +'/tarball/'+ (version ? 'v'+version : 'master');
+ url = 'https://github.com/'+ username +'/'+ repository +'/tarball/'+ (version || 'master');
}
check_installed(name, function(ok, exists) {
@@ -277,7 +277,7 @@ App.command('modules-install <name> [url]')
version = module.tags.pop();
}
- url = module.url ? module.url + (version ? 'v'+version : 'master') : 'https://github.com/'+ module.github.username +'/'+ module.github.repository +'/tarball/'+ (version ? 'v'+version : 'master');
+ url = module.url ? module.url + (version || 'master') : 'https://github.com/'+ module.github.username +'/'+ module.github.repository +'/tarball/'+ (version || 'master');
}
console.log(' name: ', name);
View
@@ -13,6 +13,6 @@
"repository": "Katana-auth"
},
- "tags": ["0.1.0"]
+ "tags": ["v0.1.0"]
}
}

0 comments on commit 3404e56

Please sign in to comment.