Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

Update.cmd 1.2 KiB

54 år sedan
54 år sedan
54 år sedan
54 år sedan
54 år sedan
54 år sedan
54 år sedan
54 år sedan
54 år sedan
54 år sedan
54 år sedan
54 år sedan
54 år sedan
54 år sedan
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. @echo off
  2. set maps_dir=sas.maps
  3. set maps_url="https://github.com/sasgis/sas.maps"
  4. git status
  5. echo %ERRORLEVEL%
  6. if ERRORLEVEL 9009 goto NoGit
  7. if ERRORLEVEL 128 goto CloneRepo
  8. if ERRORLEVEL 0 goto UpdateRepo
  9. if ERRORLEVEL -1 goto CloneRepo
  10. goto err
  11. :CloneRepo
  12. echo ९ ࢥ
  13. rd /s /q %maps_dir%
  14. git clone %maps_url% %maps_dir%
  15. if not ERRORLEVEL 0 goto err
  16. echo 㥬 ९ਥ ⥪
  17. xcopy /i /s /h /e /y %maps_dir%\.git .\.git
  18. if not ERRORLEVEL 0 goto ErrorCopyGit
  19. echo 塞 ६ ᮧ
  20. rd /s /q %maps_dir%
  21. if not ERRORLEVEL 0 goto ErrorRemoveTemp
  22. goto UpdateRepo
  23. :UpdateRepo
  24. echo 塞 䠩 ᫥ ᨨ
  25. git fetch --all --verbose
  26. git clean -d -x --force
  27. git reset --hard origin/master
  28. goto end
  29. :err
  30. echo 訡 裡 ࢥ஬
  31. goto end
  32. :ErrorCopyGit
  33. echo 訡 ஢ .git
  34. goto end
  35. :ErrorRemoveTemp
  36. echo 訡 㤠 ६ sas.maps
  37. goto end
  38. :NoGit
  39. echo 訡: ⠭ Git
  40. goto end
  41. :end
  42. pause