mirror of
https://codeberg.org/TicklishHoneyBee/CLIte.git
synced 2026-03-11 09:04:37 +00:00
touch used on an unloaded remote file should load the file
This commit is contained in:
parent
26d3686e2b
commit
71d513a65e
1 changed files with 11 additions and 2 deletions
|
|
@ -231,9 +231,18 @@ Options:
|
|||
return 1;
|
||||
}
|
||||
|
||||
function loadRemote(fd) {
|
||||
if (!fd) {
|
||||
io.error('unable to create file: '+file);
|
||||
io.exit(1);
|
||||
return;
|
||||
}
|
||||
io.exit(0);
|
||||
}
|
||||
|
||||
if (!stdio.creat(file)) {
|
||||
io.error('unable to create file: '+file);
|
||||
return 1;
|
||||
var fd = stdio.open(file,loadRemote);
|
||||
return null;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue