mirror of
https://codeberg.org/TicklishHoneyBee/CLIte.git
synced 2026-03-11 09:04:37 +00:00
simplify which and type a bit
This commit is contained in:
parent
221599955a
commit
df55e9f3ad
1 changed files with 2 additions and 6 deletions
|
|
@ -1345,10 +1345,8 @@ clite.shell = {
|
|||
return;
|
||||
}else{
|
||||
var path = clite.shell.resolvePath(args[1]);
|
||||
var fd = clite.io.open(path,false);
|
||||
if (!fd)
|
||||
if (!path)
|
||||
return;
|
||||
clite.io.close(fd);
|
||||
io.write(args[1]+' is '+path);
|
||||
}
|
||||
},
|
||||
|
|
@ -1359,10 +1357,8 @@ clite.shell = {
|
|||
io.write(args[1]+' is a shell builtin');
|
||||
}else{
|
||||
var path = clite.shell.resolvePath(args[1]);
|
||||
var fd = clite.io.open(path,false);
|
||||
if (!fd)
|
||||
if (!path)
|
||||
return;
|
||||
clite.io.close(fd);
|
||||
io.write(args[1]+' is '+path);
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue