diff --git a/getpunk.cmd b/getpunk.cmd index 0b305acb..6618d9cd 100644 --- a/getpunk.cmd +++ b/getpunk.cmd @@ -898,6 +898,8 @@ if ($matches.count) { # +#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." diff --git a/src/scriptapps/getpunk.ps1 b/src/scriptapps/getpunk.ps1 index dd738d40..734f9f2c 100644 --- a/src/scriptapps/getpunk.ps1 +++ b/src/scriptapps/getpunk.ps1 @@ -1,4 +1,6 @@ +#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 @@ -78,7 +80,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."