scriptexec: cosmetic
This commit is contained in:
parent
df2cf83f8b
commit
01648d4495
3
exec.c
3
exec.c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue