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

14 lines
346 B
Bash
Raw Normal View History

#!/bin/bash
2021-10-13 18:04:02 -07:00
misc/actions/pinouts-create.sh
if [ $? -ne 0 ]; then
exit 1
fi
if [ -n "$RUSEFI_SSH_SERVER" ]; then
2021-04-27 17:27:29 -07:00
echo "Uploading Pinouts..."
2021-10-22 06:07:35 -07:00
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; }
2021-10-09 06:45:59 -07:00