nsh/script: remove double close for output fd

the output fd had been closed in nsh_closeifnotclosed, so
remove double close.

Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
This commit is contained in:
dongjiuzhu1
2025-03-14 11:09:02 +08:00
committed by Xiang Xiao
parent 7b383d0562
commit fb6b3ddfd9

View File

@@ -74,7 +74,6 @@ static int nsh_script_redirect(FAR struct nsh_vtbl_s *vtbl,
if (fd > 0)
{
nsh_undirect(vtbl, save);
close(fd);
}
}