Skip to content

Commit cb6062f

Browse files
committed
feat(install): allow local installs to specify version
closes #423 - `ghost install 1.x.x --local` now works for local installs
1 parent d5c4959 commit cb6062f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/commands/install.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,11 @@ class InstallCommand extends Command {
4141

4242
let local = false;
4343

44-
if (version === 'local') {
44+
// If command is `ghost install local`, or command is
45+
// `ghost install 1.x.x --local`, do a local install
46+
if (version === 'local' || argv.local) {
4547
local = true;
46-
version = null;
48+
version = (version === 'local') ? null : version;
4749
this.system.setEnvironment(true, true);
4850
}
4951

0 commit comments

Comments
 (0)