Browse Source

fix getpunk script for windows

master
Julian Noble 4 days ago
parent
commit
fa900b11ac
  1. 4
      getpunk.cmd
  2. 4
      src/scriptapps/getpunk.ps1

4
getpunk.cmd

@ -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."

4
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."

Loading…
Cancel
Save