Skip to content

Commit

Permalink
Merge pull request #27 from chuckwagoncomputing/ssh-diffs2
Browse files Browse the repository at this point in the history
check for secrets
  • Loading branch information
rusefillc committed Jan 7, 2023
2 parents e0b5131 + 7d72f7a commit bb13948
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion generate_diffs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,6 @@ export -f gendiffs

mkdir ../kidiff
find . -name "*.kicad_pcb" -not -path "./rusefi_lib/*" -exec bash -c 'gendiffs "$0"' {} \;
tar -czf - -C ../kidiff . | sshpass -p "$RUSEFI_SSH_PASS" ssh -o StrictHostKeyChecking=no "$RUSEFI_SSH_USER"@"$RUSEFI_SSH_SERVER" "tar -xzf - -C docs/diffs/"
if [ "$RUSEFI_SSH_PASS" != "" ] && [ "$RUSEFI_SSH_USER" != "" ] && [ "$RUSEFI_SSH_SERVER" != "" ]; then
tar -czf - -C ../kidiff . | sshpass -p "$RUSEFI_SSH_PASS" ssh -o StrictHostKeyChecking=no "$RUSEFI_SSH_USER"@"$RUSEFI_SSH_SERVER" "tar -xzf - -C docs/diffs/"
fi

0 comments on commit bb13948

Please sign in to comment.