Files
rsync-deployments/docker-rsync/ssh-init
T
Steven 400135b4a7 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.
2025-12-07 12:31:06 +01:00

8 lines
82 B
Bash
Executable File

#!/bin/sh
set -eu
if [ ! -d "$HOME/.ssh" ]; then
mkdir -m 700 $HOME/.ssh
fi