Fix docs ps1 script module errors

This commit is contained in:
peelz
2022-08-14 18:03:42 -04:00
parent 53b92e3a44
commit 8d40a106dc
7 changed files with 10 additions and 10 deletions

View File

@@ -1,4 +1,4 @@
Import-Module $PSScriptRoot/../../scripts/location.ps1 Import-Module -DisableNameChecking $PSScriptRoot/../../scripts/location.psm1
try { try {
Change-Location $PSScriptRoot/.. Change-Location $PSScriptRoot/..

View File

@@ -1,4 +1,4 @@
Import-Module $PSScriptRoot/../../scripts/location.ps1 Import-Module -DisableNameChecking $PSScriptRoot/../../scripts/location.psm1
try { try {
Change-Location $PSScriptRoot/.. Change-Location $PSScriptRoot/..

View File

@@ -1,4 +1,4 @@
Import-Module $PSScriptRoot/../../scripts/location.ps1 Import-Module -DisableNameChecking $PSScriptRoot/../../scripts/location.psm1
try { try {
Change-Location $PSScriptRoot/.. Change-Location $PSScriptRoot/..

View File

@@ -1,4 +1,4 @@
Import-Module $PSScriptRoot/../../scripts/location.ps1 Import-Module -DisableNameChecking $PSScriptRoot/../../scripts/location.psm1
try { try {
Change-Location $PSScriptRoot/LuaDocsGenerator Change-Location $PSScriptRoot/LuaDocsGenerator

View File

@@ -1,4 +1,4 @@
Import-Module $PSScriptRoot/../../scripts/location.ps1 Import-Module -DisableNameChecking $PSScriptRoot/../../scripts/location.psm1
try { try {
Change-Location $PSScriptRoot/.. Change-Location $PSScriptRoot/..

View File

@@ -1,4 +1,4 @@
Import-Module $PSScriptRoot/../../scripts/location.ps1 Import-Module -DisableNameChecking $PSScriptRoot/../../scripts/location.psm1
try { try {
Change-Location $PSScriptRoot/.. Change-Location $PSScriptRoot/..

View File

@@ -2,13 +2,13 @@
function Change-Location($path) { function Change-Location($path) {
$loc = Get-Location $loc = Get-Location
$Locations.Add($loc) $Locations.Add($loc) | Out-Null
Set-Location $path Set-Location $path | Out-Null
} }
function Restore-Location { function Restore-Location {
$idx = $Locations.Count - 1 $idx = $Locations.Count - 1
$loc = $Locations[$idx] $loc = $Locations[$idx]
$Locations.RemoveAt($idx) $Locations.RemoveAt($idx) | Out-Null
Set-Location $loc Set-Location $loc | Out-Null
} }