diff --git a/src/playbook/local-build.cmd b/src/playbook/local-build.cmd index b067761fb6..effda43527 100644 --- a/src/playbook/local-build.cmd +++ b/src/playbook/local-build.cmd @@ -1,6 +1,8 @@ @echo off +pushd "%~dp0" echo Building Playbook... powershell -nop -ep bypass ^& "%cd%\..\local-build.ps1" -AddLiveLog -ReplaceOldPlaybook -Removals WinverRequirement, Verification -DontOpenPbLocation if %errorlevel% neq 0 ( if "%*"=="" pause -) \ No newline at end of file +) +popd \ No newline at end of file diff --git a/src/playbook/local-build.sh b/src/playbook/local-build.sh index e34aee59fd..90111f0bdb 100644 --- a/src/playbook/local-build.sh +++ b/src/playbook/local-build.sh @@ -1,5 +1,6 @@ #!/bin/bash +pushd "$(dirname "$0")" echo "Building Playbook..." pwsh -NoP -EP Bypass -C "& \"$(dirname "$PWD")/local-build.ps1\" -AddLiveLog -ReplaceOldPlaybook -Removals WinverRequirement, Verification -DontOpenPbLocation" if [ $? -ne 0 ]; then @@ -7,3 +8,4 @@ if [ $? -ne 0 ]; then read -p "Press Enter to exit...: " fi fi +popd \ No newline at end of file