Skip to content

Commit

Permalink
feat(install): allow local installs to specify version
Browse files Browse the repository at this point in the history
closes #423
- `ghost install 1.x.x --local` now works for local installs
  • Loading branch information
acburdine committed Aug 3, 2017
1 parent d5c4959 commit cb6062f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/commands/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,11 @@ class InstallCommand extends Command {

let local = false;

if (version === 'local') {
// If command is `ghost install local`, or command is
// `ghost install 1.x.x --local`, do a local install
if (version === 'local' || argv.local) {
local = true;
version = null;
version = (version === 'local') ? null : version;
this.system.setEnvironment(true, true);
}

Expand Down

0 comments on commit cb6062f

Please sign in to comment.