fix: disallow commands to be sent so an oxker container, closes #19

This commit is contained in:
Jack Wills
2022-12-05 03:52:41 +00:00
parent 43fe902bae
commit 160b8021b1
5 changed files with 31 additions and 8 deletions
+2 -2
View File
@@ -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