|
|
|
@ -898,6 +898,8 @@ if ($matches.count) {
|
|
|
|
|
|
|
|
|
|
#<powershell-payload> |
|
|
|
|
|
|
|
|
|
#powershell -Command "Invoke-WebRequest -Uri 'https://www.gitea1.intx.com.au/jn/punkshell/raw/branch/master/getpunk.cmd' -OutFile 'getpunk.cmd'; Start-Process 'getpunk.cmd' -NoNewWindow -Wait" |
|
|
|
|
|
|
|
|
|
#todo - support either fossil or git |
|
|
|
|
|
|
|
|
|
#check if git available |
|
|
|
@ -977,7 +979,7 @@ if ($contentcount -eq 0) {
|
|
|
|
|
$effectively_empty = 1 |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if ($effectively_empty) { |
|
|
|
|
if (-not($effectively_empty)) { |
|
|
|
|
if (-not(Test-Path -Path (Join-Path -Path $punkfolder -ChildPath ".git") -PathType Container)) { |
|
|
|
|
Write-Host "The folder $punkfolder contains other items, and it does not appear to be a git project root." |
|
|
|
|
Write-Host "Please place this script in an empty folder which is to be the punkshell base folder." |
|
|
|
|