Skip to content

Instantly share code, notes, and snippets.

@a5ync
Created April 20, 2016 00:40
Show Gist options
  • Save a5ync/ad8df7efa31312297bf3e9f7dedf4e77 to your computer and use it in GitHub Desktop.
Save a5ync/ad8df7efa31312297bf3e9f7dedf4e77 to your computer and use it in GitHub Desktop.
Remove Github commit id(name) from zipball
#e.g. zipball\a5ync-webgl-68dda42
#get the first child folder of root
$zipballFolder = ".\zipball"
$targetFolder = ".\final"
$directoryWithNameOfCommit = Get-ChildItem $zipballFolder| Select-Object -first 1
Write-Host $directoryWithNameOfCommit
#move the folder content to a target folder
join-path $zipballFolder $directoryWithNameOfCommit |
Move-Item -destination $targetFolder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment