Advertisement
pfeerick

drone-ci-reply-unable-to-post

Dec 1st, 2019
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.50 KB | None | 0 0
  1. I tried to post this last week, but drafts weren't being saved, and I couldn't reply. Anyway...
  2.  
  3. Actually no, because that makes the *assumption* that the user is using Powershell, not the Command prompt. This is in addition to the fact that `curl` and `tar` were only added somewhere after Windows 10 build 1706, making it only those builds of that major OS version (so nothing for Windows 7, 8, 8.1) that have any form of native support for tar files, and even then, the Win32 port of tar not accept piped input! :face_vomiting:
  4.  
  5. But if you want to go that way, there should then be a note that the instructions are only valid for that build of Windows 10 only, etc, etc.
  6.  
  7. At worst, that makes the 'working commands' for step 1 :
  8. ```
  9. cd c:
  10. mkdir c:\drone
  11. mkdir c:\drone\drone-runner-exec
  12. cd c:\drone\drone-runner-exec
  13. curl -LO https://github.com/drone-runners/drone-runner-exec/releases/latest/download/drone_runner_exec_windows_amd64.tar.gz
  14. tar xf drone_runner_exec_windows_amd64.tar.gz
  15. ren drone-runner-exec drone-runner-exec.exe
  16. del drone_runner_exec_windows_amd64.tar.gz
  17. ```
  18.  
  19. i.e. Create the needed directories, change to the relevant one, download the package, unpack it, add the missing file extension, delete the no longer needed package file.
  20.  
  21. Step 2 is then correct.
  22.  
  23. The second half Step 3 is redundant as the needed directories have been created as they were already needed.
  24.  
  25. Step 4 is correct.
  26.  
  27. Step 5 only works with PS... change `cat` to `type` for it to work with command prompt and PS.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement