Skip to content

Commit

Permalink
misc changes
Browse files Browse the repository at this point in the history
  • Loading branch information
gauravsaini04 committed Dec 13, 2024
1 parent da0ae0e commit abac4e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/common-utils/allow_shell_history.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit abac4e4

Please sign in to comment.