fix: only attempt to create dir if not yet exists

On self-hosted runners it can happen that an action (docker container) is cached. This leads to the script trying to create the .ssh dir despite it already existing. The action then fails.
This commit is contained in:
Steven 2025-12-07 12:31:06 +01:00 committed by GitHub
parent 68d1fd5150
commit 400135b4a7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2,4 +2,6 @@
set -eu
mkdir -m 700 $HOME/.ssh
if [ ! -d "$HOME/.ssh" ]; then
mkdir -m 700 $HOME/.ssh
fi