Guest User

Untitled

a guest
Jun 9th, 2023
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.43 KB | None | 0 0
  1. $ curl https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh -sSf | sh -x
  2. + set -u
  3. + ELAN_UPDATE_ROOT=https://github.com/leanprover/elan/releases
  4. + main
  5. + need_cmd curl
  6. + check_cmd curl
  7. + command -v curl
  8. + return 0
  9. + need_cmd awk
  10. + check_cmd awk
  11. + command -v awk
  12. + return 0
  13. + need_cmd uname
  14. + check_cmd uname
  15. + command -v uname
  16. + return 0
  17. + need_cmd mktemp
  18. + check_cmd mktemp
  19. + command -v mktemp
  20. + return 0
  21. + need_cmd chmod
  22. + check_cmd chmod
  23. + command -v chmod
  24. + return 0
  25. + need_cmd mkdir
  26. + check_cmd mkdir
  27. + command -v mkdir
  28. + return 0
  29. + need_cmd rm
  30. + check_cmd rm
  31. + command -v rm
  32. + return 0
  33. + need_cmd rmdir
  34. + check_cmd rmdir
  35. + command -v rmdir
  36. + return 0
  37. + get_architecture
  38. ++ uname -s
  39. + local _ostype=MINGW64_NT-10.0-18363
  40. ++ uname -m
  41. + local _cputype=x86_64
  42. + '[' MINGW64_NT-10.0-18363 = Linux ']'
  43. + '[' MINGW64_NT-10.0-18363 = Darwin -a x86_64 = i386 ']'
  44. + case "$_ostype" in
  45. + local _ostype=pc-windows-msvc
  46. + case "$_cputype" in
  47. + local _cputype=x86_64
  48. + '[' pc-windows-msvc = unknown-linux-gnu -a x86_64 = x86_64 ']'
  49. + '[' pc-windows-msvc = unknown-linux-gnueabihf -a x86_64 = armv7 ']'
  50. + local _arch=x86_64-pc-windows-msvc
  51. + RETVAL=x86_64-pc-windows-msvc
  52. + local _arch=x86_64-pc-windows-msvc
  53. + assert_nz x86_64-pc-windows-msvc arch
  54. + '[' -z x86_64-pc-windows-msvc ']'
  55. + local _ext=
  56. + case "$_arch" in
  57. + _ext=.exe
  58. ++ mktemp -d
  59. + local _dir=/tmp/tmp.f1p4T09VWq
  60. + local _file=/tmp/tmp.f1p4T09VWq/elan-init.exe
  61. + local _ansi_escapes_are_valid=false
  62. + '[' -t 2 ']'
  63. + '[' set = set ']'
  64. + case "$TERM" in
  65. + _ansi_escapes_are_valid=true
  66. + local need_tty=yes
  67. + true
  68. + printf '\33[1minfo:\33[0m downloading installer\n'
  69. info: downloading installer
  70. + ensure mkdir -p /tmp/tmp.f1p4T09VWq
  71. + mkdir -p /tmp/tmp.f1p4T09VWq
  72. + need_ok 'command failed: mkdir -p /tmp/tmp.f1p4T09VWq'
  73. + '[' 0 '!=' 0 ']'
  74. ++ ensure curl -sSfL -o /dev/null -w '%{url_effective}' https://github.com/leanprover/elan/releases/latest
  75. ++ curl -sSfL -o /dev/null -w '%{url_effective}' https://github.com/leanprover/elan/releases/latest
  76. ++ cut '-d"' -f2
  77. ++ awk -F/ '{print $NF}'
  78. ++ need_ok 'command failed: curl -sSfL -o /dev/null -w %{url_effective} https://github.com/leanprover/elan/releases/latest'
  79. ++ '[' 0 '!=' 0 ']'
  80. + local _latest=v1.4.5
  81. + case "$_arch" in
  82. + ensure curl -sSfL https://github.com/leanprover/elan/releases/download/v1.4.5/elan-x86_64-pc-windows-msvc.zip
  83. + curl -sSfL https://github.com/leanprover/elan/releases/download/v1.4.5/elan-x86_64-pc-windows-msvc.zip
  84. + need_ok 'command failed: curl -sSfL https://github.com/leanprover/elan/releases/download/v1.4.5/elan-x86_64-pc-windows-msvc.zip'
  85. + '[' 0 '!=' 0 ']'
  86. + cd /tmp/tmp.f1p4T09VWq
  87. + ensure unzip elan-init.zip
  88. + unzip elan-init.zip
  89. Archive: elan-init.zip
  90. inflating: elan-init.exe
  91. + need_ok 'command failed: unzip elan-init.zip'
  92. + '[' 0 '!=' 0 ']'
  93. + ignore rm elan-init.zip
  94. + rm elan-init.zip
  95. + ensure chmod u+x /tmp/tmp.f1p4T09VWq/elan-init.exe
  96. + chmod u+x /tmp/tmp.f1p4T09VWq/elan-init.exe
  97. + need_ok 'command failed: chmod u+x /tmp/tmp.f1p4T09VWq/elan-init.exe'
  98. + '[' 0 '!=' 0 ']'
  99. + '[' '!' -x /tmp/tmp.f1p4T09VWq/elan-init.exe ']'
  100. + '[' yes = yes ']'
  101. + '[' '!' -t 1 ']'
  102. + ignore /tmp/tmp.f1p4T09VWq/elan-init.exe
  103. + /tmp/tmp.f1p4T09VWq/elan-init.exe
  104. + local _retval=127
  105. + ignore rm /tmp/tmp.f1p4T09VWq/elan-init.exe
  106. + rm /tmp/tmp.f1p4T09VWq/elan-init.exe
  107. + ignore rmdir /tmp/tmp.f1p4T09VWq
  108. + rmdir /tmp/tmp.f1p4T09VWq
  109. + return 127
  110. + exit 1
  111.  
Advertisement
Add Comment
Please, Sign In to add comment