mirror of
https://github.com/Burnett01/rsync-deployments.git
synced 2026-09-21 14:15:24 +08:00
400135b4a7
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.
8 lines
82 B
Bash
Executable File
8 lines
82 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -eu
|
|
|
|
if [ ! -d "$HOME/.ssh" ]; then
|
|
mkdir -m 700 $HOME/.ssh
|
|
fi
|