fixed the whiledir tag.

This commit is contained in:
barant committed 2025-01-09 08:02:38 -08:00
1 parent 4a17002d22
commit b65d8d4396
2 files changed
+10 -10

No files matched your search

+2 -2
View File
@@ -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);
}