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 {
Change-Location $PSScriptRoot/..

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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