fix: disallow commands to be sent so an oxker container, closes #19
This commit is contained in:
@@ -19,7 +19,7 @@ use crate::{
|
||||
app_data::{AppData, ContainerId, DockerControls},
|
||||
app_error::AppError,
|
||||
parse_args::CliArgs,
|
||||
ui::{GuiState, Status},
|
||||
ui::{GuiState, Status}, ENTRY_POINT,
|
||||
};
|
||||
mod message;
|
||||
pub use message::DockerMessage;
|
||||
@@ -190,7 +190,7 @@ impl DockerData {
|
||||
Some(_) => {
|
||||
if f.command
|
||||
.as_ref()
|
||||
.map_or(false, |c| c.starts_with("./start_oxker.sh"))
|
||||
.map_or(false, |c| c.starts_with(ENTRY_POINT))
|
||||
&& self.args.show_self
|
||||
{
|
||||
None
|
||||
|
||||
Reference in New Issue
Block a user