mirror of
https://github.com/Burnett01/rsync-deployments.git
synced 2026-09-21 18:04:37 +00: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:
@@ -2,4 +2,6 @@
|
||||
|
||||
set -eu
|
||||
|
||||
if [ ! -d "$HOME/.ssh" ]; then
|
||||
mkdir -m 700 $HOME/.ssh
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user