1
0
mirror of https://github.com/elua/elua.git synced 2025-01-08 20:56:17 +08:00

suppress 'Unable to initialize the eLua shell' message when BUILD_SHELL is not defined

This commit is contained in:
Bogdan Marinescu 2011-01-16 12:49:05 +00:00
parent 81e7f040fc
commit c5104e73cb

View File

@ -103,7 +103,8 @@ int main( void )
dm_register( remotefs_init() );
// Search for autorun files in the defined order and execute the 1st if found
for( i = 0; i < sizeof( boot_order )/sizeof( *boot_order ); i++ ){
for( i = 0; i < sizeof( boot_order ) / sizeof( *boot_order ); i++ )
{
if( ( fp = fopen( boot_order[ i ], "r" ) ) != NULL )
{
fclose( fp );
@ -120,7 +121,6 @@ int main( void )
// Run the shell
if( shell_init() == 0 )
{
printf( "Unable to initialize the eLua shell!\n" );
// Start Lua directly
char* lua_argv[] = { "lua", NULL };
lua_main( 1, lua_argv );