scriptexec: cosmetic

This commit is contained in:
KO Myung-Hun 2015-06-11 22:44:00 +09:00
parent df2cf83f8b
commit 01648d4495
1 changed files with 1 additions and 2 deletions

3
exec.c
View File

@ -962,8 +962,7 @@ scriptexec(struct op *tp, const char **ap)
* Search shell/interpreter name without directory in PATH
* if specified path does not exist
*/
if (ksh_vstrchr_dirsep(sh) && !search_path(sh, path, X_OK, NULL))
{
if (ksh_vstrchr_dirsep(sh) && !search_path(sh, path, X_OK, NULL)) {
cp = search_path(_getname(sh), path, X_OK, NULL);
if (cp)
sh = cp;