fixed the whiledir tag.
This commit is contained in:
1 parent
4a17002d22
commit
b65d8d4396
2 files changed
+10
-10
No files matched your search
+2
-2
@@ -13,10 +13,10 @@ namespace jet {
|
||||
throw coreutils::Exception("name keyword must be specified.");
|
||||
if(hasContainer)
|
||||
throw coreutils::Exception("read tag does not have a container.");
|
||||
fd = open(keywords[resolveKeyword("file")].c_str(), O_RDONLY);
|
||||
fd = open(resolveKeyword("file").c_str(), O_RDONLY);
|
||||
if(fd < 0)
|
||||
throw coreutils::Exception("file name is not found.");
|
||||
global.variables[keywords[resolveKeyword("name")]].read(fd);
|
||||
global.variables[resolveKeyword("name")].read(fd);
|
||||
close(fd);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user