From eebc061cb9b6a0608bfbaaad3c90d6ea1bcfc257 Mon Sep 17 00:00:00 2001 From: frizop Date: Sun, 15 Sep 2013 01:31:36 -0500 Subject: [PATCH 1/2] Update MakeRelease.ps1 Just verify that the script is not being run from powershell (which is how I run this) --- MakeRelease.ps1 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/MakeRelease.ps1 b/MakeRelease.ps1 index 57eb5da4..95448615 100644 --- a/MakeRelease.ps1 +++ b/MakeRelease.ps1 @@ -1,4 +1,3 @@ - param([switch]$Install) add-type -AssemblyName System.IO.Compression.FileSystem @@ -46,7 +45,12 @@ del $PSScriptRoot\PSReadline.zip -ea Ignore if ($Install) { - $InstallDir = "${env:HOME}\Documents\WIndowsPowerShell\Modules" + if ($PSVersionTable.PSVersion.Major) { + $InstallDir = "$HOME\Documents\WIndowsPowerShell\Modules" + } else { + $InstallDir = "${env:HOME}\Documents\WIndowsPowerShell\Modules" + } + if (!(Test-Path $InstallDir)) { From c5e930fd8627b6d79d850df35150c8663a6920f2 Mon Sep 17 00:00:00 2001 From: Nathan M Date: Sun, 15 Sep 2013 18:05:21 -0500 Subject: [PATCH 2/2] Requested changes updated. --- MakeRelease.ps1 | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/MakeRelease.ps1 b/MakeRelease.ps1 index 95448615..99516516 100644 --- a/MakeRelease.ps1 +++ b/MakeRelease.ps1 @@ -45,12 +45,7 @@ del $PSScriptRoot\PSReadline.zip -ea Ignore if ($Install) { - if ($PSVersionTable.PSVersion.Major) { - $InstallDir = "$HOME\Documents\WIndowsPowerShell\Modules" - } else { - $InstallDir = "${env:HOME}\Documents\WIndowsPowerShell\Modules" - } - + $InstallDir = "$HOME\Documents\WIndowsPowerShell\Modules" if (!(Test-Path $InstallDir)) {