get_fileinfo (args[*argn + 1], &ctx);
update_val (ctx.file_exists && ctx.file_info.dir, &ctx);
(*argn) += 2;
- return ctx.or || ctx.and;
+ continue;
}
if (grub_strcmp (args[*argn], "-e") == 0)
get_fileinfo (args[*argn + 1], &ctx);
update_val (ctx.file_exists, &ctx);
(*argn) += 2;
- return ctx.or || ctx.and;
+ continue;
}
if (grub_strcmp (args[*argn], "-f") == 0)
/* FIXME: check for other types. */
update_val (ctx.file_exists && ! ctx.file_info.dir, &ctx);
(*argn) += 2;
- return ctx.or || ctx.and;
+ continue;
}
if (grub_strcmp (args[*argn], "-s") == 0)
grub_file_close (file);
grub_errno = GRUB_ERR_NONE;
(*argn) += 2;
- return ctx.or || ctx.and;
+ continue;
}
/* String tests. */
if (grub_strcmp (args[*argn], ")") == 0)
{
(*argn)++;
- return ctx.or || ctx.and;
+ continue;
}
/* Recursively invoke if parenthesis. */
if (grub_strcmp (args[*argn], "(") == 0)