Skip to content

Commit

Permalink
docker add ssh-agent environment setup by default (#189)
Browse files Browse the repository at this point in the history
  • Loading branch information
mamueluth authored May 16, 2024
1 parent aac91e6 commit 7b24206
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions templates/docker/bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,12 @@ if [ ! -e "$ws_inited_check_file" ] && [ ! -d "$ws_folder/src" ]; then
cd ~/ || { echo "Could switch back to $HOME"; return 1;}
fi

# setup environment for communication with ssh-agent
# this is needed so that by default ssh-add commands are working
if [ -z "$SSH_AUTH_SOCK" ] ; then
eval $(ssh-agent)
fi

# source ros_team_ws_rc automatically
if [ -f ~/.ros_team_ws_rc ]; then
. ~/.ros_team_ws_rc
Expand Down

0 comments on commit 7b24206

Please sign in to comment.