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
|
* Search shell/interpreter name without directory in PATH
|
||||||
* if specified path does not exist
|
* 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);
|
cp = search_path(_getname(sh), path, X_OK, NULL);
|
||||||
if (cp)
|
if (cp)
|
||||||
sh = cp;
|
sh = cp;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user