mirror of
https://github.com/Burnett01/rsync-deployments.git
synced 2025-12-19 11:12:18 +01:00
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.
7 lines
82 B
Bash
Executable file
7 lines
82 B
Bash
Executable file
#!/bin/sh
|
|
|
|
set -eu
|
|
|
|
if [ ! -d "$HOME/.ssh" ]; then
|
|
mkdir -m 700 $HOME/.ssh
|
|
fi
|