mirror of
https://github.com/RubyMetric/chsrc
synced 2025-12-25 11:59:54 +08:00
Adjust chsrc_conclude()
This commit is contained in:
@@ -42,7 +42,8 @@ pl_nodejs_nvm_setsrc (char *option)
|
||||
if (xy_file_exist (zshrc))
|
||||
chsrc_append_to_file (w, zshrc);
|
||||
|
||||
chsrc_conclude (&source, SetsrcType_Auto);
|
||||
ProgMode_ChgType = ProgMode_CMD_Reset ? ChgType_Reset : ChgType_Auto;
|
||||
chsrc_conclude (&source);
|
||||
}
|
||||
|
||||
|
||||
@@ -52,7 +53,7 @@ pl_nodejs_nvm_setsrc (char *option)
|
||||
void
|
||||
pl_nodejs_nvm_resetsrc (char *option)
|
||||
{
|
||||
// pl_nodejs_nvm_setsrc (SetsrcType_Reset);
|
||||
// pl_nodejs_nvm_setsrc (ChgType_Reset);
|
||||
chsrc_error ("暂不支持对 nvm 重置");
|
||||
exit (Exit_Unsupported);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user