Restore ssh-agent permissions on exit.

...enough that subsequent builds can overwrite ssh-agent if necessary.
This commit is contained in:
Darren Tucker 2022-12-02 11:43:36 +11:00
parent ccf5a13868
commit 5796bf8ca9
No known key found for this signature in database
1 changed files with 1 additions and 0 deletions

View File

@ -38,6 +38,7 @@ else
$SUDO chown 0 ${SSHAGENT} $SUDO chown 0 ${SSHAGENT}
$SUDO chgrp 0 ${SSHAGENT} $SUDO chgrp 0 ${SSHAGENT}
$SUDO chmod 2755 ${SSHAGENT} $SUDO chmod 2755 ${SSHAGENT}
trap "$SUDO chown ${USER} ${SSHAGENT}; $SUDO chmod 755 ${SSHAGENT}" 0
fi fi
trace "start agent" trace "start agent"