mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
install: use $HOME variable
This commit is contained in:
1 parent
c21adfb99a
commit
ba5950472c
2 files changed
+12
-19
No files matched your search
@@ -93,7 +93,7 @@ if (!argv.args[0] || argv.args[0] === 'cli') {
|
||||
return;
|
||||
}
|
||||
if (operation === 'create') {
|
||||
name ||= '/root/addon';
|
||||
name ||= `${os.homedir()}/addon`;
|
||||
fs.mkdirSync(name);
|
||||
child.execSync('yarn init -y', { cwd: name });
|
||||
fs.mkdirSync(`${name}/templates`);
|
||||
|
||||
Reference in new issue
Block a user