File tree 2 files changed +16
-6
lines changed 2 files changed +16
-6
lines changed Original file line number Diff line number Diff line change 12
12
:: See the License for the specific language governing permissions and
13
13
:: limitations under the License.
14
14
@ echo off
15
- %~dp0 ..\..\..\tools\run_dart_tool.bat build_jsoncpp %~dp0 ..\third_party\jsoncpp %~dp0 ..\dependencies\JSON %*
15
+
16
+ set RUN_DART_TOOL = %~dp0 ..\..\..\tools\run_dart_tool.bat
17
+ set CHECKOUT_DIR = %~dp0 ..\third_party\jsoncpp
18
+ set ARTIFACT_DIR = %~dp0 ..\dependencies\JSON
19
+
20
+ call %RUN_DART_TOOL% fetch_jsoncpp %CHECKOUT_DIR%
21
+ call %RUN_DART_TOOL% build_jsoncpp %CHECKOUT_DIR% %ARTIFACT_DIR% %*
Original file line number Diff line number Diff line change @@ -38,11 +38,15 @@ Future<void> main(List<String> arguments) async {
38
38
39
39
final downloadDirectory = arguments[0 ];
40
40
41
- await runCommand ('git' , [
42
- 'clone' ,
43
- gitRepo,
44
- downloadDirectory,
45
- ]);
41
+ if (Directory (downloadDirectory).existsSync ()) {
42
+ print ('$downloadDirectory already exists; skipping clone' );
43
+ } else {
44
+ await runCommand ('git' , [
45
+ 'clone' ,
46
+ gitRepo,
47
+ downloadDirectory,
48
+ ]);
49
+ }
46
50
47
51
await runCommand (
48
52
'git' ,
You can’t perform that action at this time.
0 commit comments