Skip to content

Commit

Permalink
fix(local-build): cd into script directory
Browse files Browse the repository at this point in the history
  • Loading branch information
he3als committed Sep 2, 2024
1 parent ef4ea8a commit 6b8af44
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/playbook/local-build.cmd
Original file line number Diff line number Diff line change
@@ -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
)
)
popd
2 changes: 2 additions & 0 deletions src/playbook/local-build.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
#!/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
if [ -z "$*" ]; then
read -p "Press Enter to exit...: "
fi
fi
popd

0 comments on commit 6b8af44

Please sign in to comment.