mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-26 11:45:08 +00:00
Correct the warning for invalid directories
This was inadvertently broken.
This commit is contained in:
parent
55e3270ac4
commit
72e43a514b
1 changed files with 3 additions and 2 deletions
|
@ -258,8 +258,9 @@ static void maybe_issue_path_warning(const wcstring &which_dir, const wcstring &
|
||||||
int saved_errno) {
|
int saved_errno) {
|
||||||
auto &vars = env_stack_t::globals();
|
auto &vars = env_stack_t::globals();
|
||||||
wcstring warning_var_name = L"_FISH_WARNED_" + which_dir;
|
wcstring warning_var_name = L"_FISH_WARNED_" + which_dir;
|
||||||
auto var = vars.get(warning_var_name, ENV_GLOBAL | ENV_EXPORT);
|
if (vars.get(warning_var_name, ENV_GLOBAL | ENV_EXPORT)) {
|
||||||
if (!var) return;
|
return;
|
||||||
|
}
|
||||||
vars.set_one(warning_var_name, ENV_GLOBAL | ENV_EXPORT, L"1");
|
vars.set_one(warning_var_name, ENV_GLOBAL | ENV_EXPORT, L"1");
|
||||||
|
|
||||||
debug(0, custom_error_msg.c_str());
|
debug(0, custom_error_msg.c_str());
|
||||||
|
|
Loading…
Reference in a new issue