rusefi-1/misc/jenkins/generate_pinouts/gen_upload_pinouts.sh

14 lines
346 B
Bash

#!/bin/bash
misc/actions/pinouts-create.sh
if [ $? -ne 0 ]; then
exit 1
fi
if [ -n "$RUSEFI_SSH_SERVER" ]; then
echo "Uploading Pinouts..."
tar -czf - pinouts | sshpass -p "$RUSEFI_SSH_PASS" ssh -o StrictHostKeyChecking=no "$RUSEFI_SSH_USER"@"$RUSEFI_SSH_SERVER" "tar -xzf - -C docs"
fi
[ $? -eq 0 ] || { echo "upload FAILED"; exit 1; }