Set the working directory for Powershell IO methods
This commit is contained in:
parent
c4fd6c708d
commit
136e19de5d
5
make.ps1
5
make.ps1
@ -288,6 +288,10 @@ else
|
|||||||
$command = $args
|
$command = $args
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Set the working directory for our IO methods
|
||||||
|
$templateDir = $pwd.Path
|
||||||
|
[System.IO.Directory]::SetCurrentDirectory($templateDir)
|
||||||
|
|
||||||
# Load the environment variables from the config file
|
# Load the environment variables from the config file
|
||||||
# and get the mod ID from the local environment variable
|
# and get the mod ID from the local environment variable
|
||||||
ParseConfigFile "mod.config"
|
ParseConfigFile "mod.config"
|
||||||
@ -304,7 +308,6 @@ $env:MOD_SEARCH_PATHS = (Get-Item -Path ".\" -Verbose).FullName + "\mods,./mods"
|
|||||||
# Run the same command on the engine's make file
|
# Run the same command on the engine's make file
|
||||||
if ($command -eq "all" -or $command -eq "clean")
|
if ($command -eq "all" -or $command -eq "clean")
|
||||||
{
|
{
|
||||||
$templateDir = $pwd.Path
|
|
||||||
$versionFile = $env:ENGINE_DIRECTORY + "/VERSION"
|
$versionFile = $env:ENGINE_DIRECTORY + "/VERSION"
|
||||||
$currentEngine = ""
|
$currentEngine = ""
|
||||||
if (Test-Path $versionFile)
|
if (Test-Path $versionFile)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user