From abac4e4cc09b01a18d06d31d7aa693a73c14dfb6 Mon Sep 17 00:00:00 2001 From: Gaurav Saini <147703805+gauravsaini04@users.noreply.github.com> Date: Fri, 13 Dec 2024 09:12:59 +0000 Subject: [PATCH] misc changes --- test/common-utils/allow_shell_history.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/common-utils/allow_shell_history.sh b/test/common-utils/allow_shell_history.sh index 2c8a15408..efe4449e6 100644 --- a/test/common-utils/allow_shell_history.sh +++ b/test/common-utils/allow_shell_history.sh @@ -99,14 +99,14 @@ add_shell_history() { local container_id=$1 local history_message=$2 echo -e "\nWriting shell history: $history_message"; - sudo docker exec -it $container_id /bin/bash -c "echo \"$history_message\" >> ~/.bash_history" + sudo docker exec -i $container_id /bin/bash -c "echo \"$history_message\" >> ~/.bash_history" } # Function to check shell history check_shell_history() { local container_id=$1 echo -e "\nChecking shell history from container: "; - sudo docker exec -it $container_id /bin/bash -c "cat ~/.bash_history" + sudo docker exec -i $container_id /bin/bash -c "cat ~/.bash_history" } source /tmp/container_id.txt