Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Other than some manual things to get around the irregularities in the zip file or repository, I ran this. This was my first PowerShell script, so I wasn't sure how to pad the filename to 4 characters. I had to manually add 0s, as I got further.
- function bacon {
- Param ([int] $b)
- if (1 -eq $b) {return}
- Expand-Archive E:\CodeMashCTF11\0$($b)\0$($b-1).zip -DestinationPath E:\CodeMashCTF11\
- cd ../0$($b-1)
- git checkout -f
- return bacon -b ($b-1)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement