github.com_burnett01_rsync-.../docker-rsync/ssh-init
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

7 lines
82 B
Bash
Executable file

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