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 {
|
try {
|
||||||
Change-Location $PSScriptRoot/..
|
Change-Location $PSScriptRoot/..
|
||||||
|
|||||||
@@ -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/..
|
||||||
|
|||||||
@@ -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/..
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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/..
|
||||||
|
|||||||
@@ -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/..
|
||||||
|
|||||||
@@ -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
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user