mirror of
https://gitee.com/RubyMetric/chsrc.git
synced 2025-12-25 20:52:49 +00:00
Fix: omit paren
This commit is contained in:
parent
efd14a69f2
commit
85f6bfb423
4
lib/xy.c
4
lib/xy.c
|
|
@ -695,7 +695,7 @@ xy_normalize_path (const char *path)
|
|||
if (xy_str_start_with (new, "~/"))
|
||||
{
|
||||
// 或 %USERPROFILE%
|
||||
new = xy_strjoin (3, xy_os_home, "\\",
|
||||
new = xy_strjoin (3, xy_os_home(), "\\",
|
||||
xy_str_delete_prefix (new, "~/"));
|
||||
}
|
||||
new = xy_str_gsub (new, "/", "\\");
|
||||
|
|
@ -704,7 +704,7 @@ xy_normalize_path (const char *path)
|
|||
{
|
||||
if (xy_str_start_with (new, "~/"))
|
||||
{
|
||||
new = xy_strjoin (3, xy_os_home, "/",
|
||||
new = xy_strjoin (3, xy_os_home(), "/",
|
||||
xy_str_delete_prefix (new, "~/"));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -62,11 +62,11 @@ pl_dart_flutter_setsrc (char *option)
|
|||
{
|
||||
w = xy_strjoin (3, "$env:FLUTTER_STORAGE_BASE_URL = \"", source.url, "\"\n");
|
||||
|
||||
if (xy_file_exist (xy_win_powershell_profile))
|
||||
chsrc_append_to_file (w, xy_win_powershell_profile);
|
||||
if (xy_file_exist (xy_win_powershell_profile()))
|
||||
chsrc_append_to_file (w, xy_win_powershell_profile());
|
||||
|
||||
if (xy_file_exist (xy_win_powershellv5_profile))
|
||||
chsrc_append_to_file (w, xy_win_powershellv5_profile);
|
||||
if (xy_file_exist (xy_win_powershellv5_profile()))
|
||||
chsrc_append_to_file (w, xy_win_powershellv5_profile());
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
|
|
@ -57,11 +57,11 @@ pl_dart_setsrc (char *option)
|
|||
{
|
||||
w = xy_strjoin (3, "$env:PUB_HOSTED_URL = \"", source.url, "\"\n");
|
||||
|
||||
if (xy_file_exist (xy_win_powershell_profile))
|
||||
chsrc_append_to_file (w, xy_win_powershell_profile);
|
||||
if (xy_file_exist (xy_win_powershell_profile()))
|
||||
chsrc_append_to_file (w, xy_win_powershell_profile());
|
||||
|
||||
if (xy_file_exist (xy_win_powershellv5_profile))
|
||||
chsrc_append_to_file (w, xy_win_powershellv5_profile);
|
||||
if (xy_file_exist (xy_win_powershellv5_profile()))
|
||||
chsrc_append_to_file (w, xy_win_powershellv5_profile());
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ wr_anaconda_setsrc (char *option)
|
|||
|
||||
|
||||
// TODO: 待确认 windows 上也是这里吗?
|
||||
char *config = xy_2strjoin (xy_os_home, "/.condarc");
|
||||
char *config = xy_2strjoin (xy_os_home(), "/.condarc");
|
||||
|
||||
if (xy_on_windows)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue