Skip to content

Commit

Permalink
Fix Read-Host not being able to read from stdin during powershell con…
Browse files Browse the repository at this point in the history
…figuration script execution
  • Loading branch information
bwRavencl committed Dec 13, 2023
1 parent 3bb1ddd commit 2efa1e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ jobs:
- name: Run ShellCheck
uses: ludeeus/[email protected]
env:
SHELLCHECK_OPTS: -e SC1003 -e SC2016
SHELLCHECK_OPTS: -e SC1003
2 changes: 1 addition & 1 deletion InstallControllerBuddy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ else
if [ "$RUN_CONFIG_SCRIPTS" = true ]
then
log 'Running ControllerBuddy-Profiles configuration scripts...'
find "$CB_PROFILES_DIR\\configs" -mindepth 2 -maxdepth 2 -name 'Configure.ps1' -print0 | xargs -0 sh -c 'for arg do echo ; powershell -ExecutionPolicy Bypass -File $arg ; done' _
find "$CB_PROFILES_DIR\\configs" -mindepth 2 -maxdepth 2 -name 'Configure.ps1' -exec sh -c 'echo ; powershell -ExecutionPolicy Bypass -File "$1"' shell {} \;
log 'Done!'
echo
fi
Expand Down

0 comments on commit 2efa1e9

Please sign in to comment.