Fix: omit paren

This commit is contained in:
Aoran Zeng 2025-03-06 17:23:42 +08:00
parent efd14a69f2
commit 85f6bfb423
No known key found for this signature in database
GPG Key ID: 8F8BA8488E10ED98
4 changed files with 11 additions and 11 deletions

View File

@ -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, "~/"));
}
}

View File

@ -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
{

View File

@ -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
{

View File

@ -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)
{