This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ### Script for sync between git and SVN repos | |
| #!/bin/bash | |
| while [ -n "$1" ]; do | |
| case "$1" in | |
| --commit-ref-name) COMMIT_REF_NAME="$2" | |
| echo "Found the COMMIT_REF_NAME option, with parameter value $COMMIT_REF_NAME" | |
| shift ;; | |
| --commit-sha) COMMIT_SHA="$2" | |
| echo "Found the COMMIT_SHA option, with parameter value $COMMIT_SHA" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const logToFile = function(log) { | |
| var file = require('fs').createWriteStream(__dirname + '/debug.log', {flags : 'w'}); | |
| file.write(require('util').format(log) + '\n'); | |
| }; |
NewerOlder