Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
m4dm4rtig4n committed Feb 16, 2024
1 parent e734cac commit 0374f0b
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .devcontainer/post-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,17 @@ echo ""
# update-ca-certificates
echo ""
echo "Install environment"
make install
make install

eval "$(ssh-agent -s)"
cat >> ~/.bashrc <<- EOM
if [ -z "\$SSH_AUTH_SOCK" ]; then
# Check for a currently running instance of the agent
RUNNING_AGENT="`ps -ax | grep 'ssh-agent -s' | grep -v grep | wc -l | tr -d '[:space:]'`"
if [ "\$RUNNING_AGENT" = "0" ]; then
# Launch a new instance of the agent
ssh-agent -s &> \$HOME/.ssh/ssh-agent
fi
eval `cat \$HOME/.ssh/ssh-agent`
fi
EOM

0 comments on commit 0374f0b

Please sign in to comment.