Fix docs ps1 script module errors
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
Import-Module $PSScriptRoot/../../scripts/location.ps1
|
||||
Import-Module -DisableNameChecking $PSScriptRoot/../../scripts/location.psm1
|
||||
|
||||
try {
|
||||
Change-Location $PSScriptRoot/..
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Import-Module $PSScriptRoot/../../scripts/location.ps1
|
||||
Import-Module -DisableNameChecking $PSScriptRoot/../../scripts/location.psm1
|
||||
|
||||
try {
|
||||
Change-Location $PSScriptRoot/..
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Import-Module $PSScriptRoot/../../scripts/location.ps1
|
||||
Import-Module -DisableNameChecking $PSScriptRoot/../../scripts/location.psm1
|
||||
|
||||
try {
|
||||
Change-Location $PSScriptRoot/..
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Import-Module $PSScriptRoot/../../scripts/location.ps1
|
||||
Import-Module -DisableNameChecking $PSScriptRoot/../../scripts/location.psm1
|
||||
|
||||
try {
|
||||
Change-Location $PSScriptRoot/LuaDocsGenerator
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Import-Module $PSScriptRoot/../../scripts/location.ps1
|
||||
Import-Module -DisableNameChecking $PSScriptRoot/../../scripts/location.psm1
|
||||
|
||||
try {
|
||||
Change-Location $PSScriptRoot/..
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Import-Module $PSScriptRoot/../../scripts/location.ps1
|
||||
Import-Module -DisableNameChecking $PSScriptRoot/../../scripts/location.psm1
|
||||
|
||||
try {
|
||||
Change-Location $PSScriptRoot/..
|
||||
|
||||
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user