You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implemented -no-acl to control ownership and ACL info
Fixed possible 'Cannot execute a program' when trying to use pkg via GetNutool in old VS2010 (MSBuild 4.0), F-47
Fixed exit with invalid key and 'pk-or-sys' for -debug
All tests are now valid, including in XP
@@ -414,18 +425,20 @@ set /a "idx+=1" & if %idx% LSS !amax! goto loopargs
414
425
call :copyOrLinkFolder"!dpkg!""!tdir!"
415
426
)
416
427
417
-
echo Done.
418
-
419
-
set /a EXIT_CODE=%ERROR_SUCCESS%
428
+
set /a EXIT_CODE=!ERRORLEVEL!
420
429
goto endpoint
421
430
422
431
423
432
:: - - - - - - -
424
433
:: Post-actions
425
434
:endpoint
426
435
427
-
if!EXIT_CODE!NEQ0
428
-
(
436
+
if!EXIT_CODE!EQU%ERROR_SUCCESS%
437
+
(
438
+
echo Done.
439
+
exit /B %ERROR_SUCCESS%
440
+
)
441
+
429
442
call :warn"Failed: !EXIT_CODE!"
430
443
set"hmsurl=https://github.com/3F/hMSBuild"
431
444
@@ -463,20 +476,32 @@ if !EXIT_CODE! NEQ 0
463
476
)
464
477
elseif!EXIT_CODE!EQU%ERROR_UNAUTHORIZED_ACCESS%
465
478
(
466
-
call :warn"Unauthorized access. Make sure you have read/write permissions to the folders listed in '-debug'. Try run %~nx0 as administrator."
479
+
call :warn"Unauthorized access. Make sure you have read/write permissions to the folders listed in '-debug'. Try run %~nx0 as administrator or use '-no-acl'"
467
480
)
468
481
elseif!EXIT_CODE!EQU%ERROR_SDK_ROOT_NOT_EXIST%
469
482
(
470
483
call :warn"The path specified in '-sdk-root' does not exist: !kSdkRoot!. Try as -sdk-root `!kSdkRoot!` or make sure."
471
484
)
485
+
elseif!EXIT_CODE!EQU%ERROR_XCP_W%
486
+
(
487
+
call :warn"Failed XCOPY. Try '-no-acl' key to avoid `Access denied` errors; Use '-debug' / '-stub' for details."
488
+
)
489
+
elseif!EXIT_CODE!EQU%ERROR_INVALID_KEY_OR_VALUE%
490
+
(
491
+
exit /B !EXIT_CODE!
492
+
)
493
+
else
494
+
(
495
+
call :warn"Something went wrong. Use '-debug' and/or '-stub' keys to inspect the problem."
496
+
)
472
497
473
498
ifdefined kFallback ifdefined tfm
474
499
(
475
-
echo.&echo Switch to !kFallback! mode for second attempt due to '-mode !kMode!-or-!kFallback!'
500
+
echo.&echo Switch to '!kFallback!' mode for second attempt due to '-mode !kMode!-or-!kFallback!'
0 commit comments