Created
April 20, 2016 00:40
-
-
Save a5ync/ad8df7efa31312297bf3e9f7dedf4e77 to your computer and use it in GitHub Desktop.
Remove Github commit id(name) from zipball
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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