mirror of
https://github.com/Burnett01/rsync-deployments.git
synced 2025-12-19 11:12:18 +01:00
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:
parent
68d1fd5150
commit
400135b4a7
1 changed files with 3 additions and 1 deletions
|
|
@ -2,4 +2,6 @@
|
|||
|
||||
set -eu
|
||||
|
||||
if [ ! -d "$HOME/.ssh" ]; then
|
||||
mkdir -m 700 $HOME/.ssh
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in a new issue