Fix incorrect readlink error message

This commit is contained in:
PartialVolume
2020-03-27 21:40:56 +00:00
parent ddfa194ed9
commit 4fe7f4a697

View File

@@ -533,10 +533,12 @@ int nwipe_get_device_bus_type_and_serialno( char* device, nwipe_device_t* bus, c
if( exit_status == 127 )
{
nwipe_log( NWIPE_LOG_WARNING, "Command not found. Install Readlink recommended !" );
set_return_value = 2;
if( nwipe_options.nousb )
{
return set_return_value;
}
}
set_return_value = 2;
return set_return_value;
}
}
}