fix(ci): avoid SIGPIPE (exit 141) in rsync version check under pipefail
Deploy to plate-software.de / deploy (push) Failing after 11s
Deploy to plate-software.de / deploy (push) Failing after 11s
This commit is contained in:
@@ -37,7 +37,10 @@ jobs:
|
||||
if ! command -v rsync >/dev/null 2>&1; then
|
||||
apt-get update -y && apt-get install -y rsync openssh-client
|
||||
fi
|
||||
rsync --version | head -1
|
||||
# Avoid `rsync --version | head` — head closing the pipe early sends
|
||||
# SIGPIPE to rsync (exit 141) which trips `pipefail`. Print plainly.
|
||||
ver=$(rsync --version | sed -n '1p')
|
||||
echo "Using $ver"
|
||||
|
||||
- name: Load deploy key
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user