diff --git a/.gitattributes b/.gitattributes index 3c8787f263..082474d9fe 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,3 +1,4 @@ # perform crlf normalization on batch and cmd files *.bat eol=crlf -*.cmd eol=crlf \ No newline at end of file +*.cmd eol=crlf +*.sh eol=lf \ No newline at end of file diff --git a/src/local-build.ps1 b/src/local-build.ps1 index 65b5421e20..c16bdccaa2 100644 --- a/src/local-build.ps1 +++ b/src/local-build.ps1 @@ -126,7 +126,7 @@ while ($true) { Get-Content -Wait -LiteralPath $a -EA 0 | Write-Output; Start-Sl # exclude files $excludeFiles = @( - "local-build.cmd", + "local-build.*", "*.apbx" ) if (Test-Path $tempCustomYmlPath) { $excludeFiles += "custom.yml" } diff --git a/src/playbook/local-build.sh b/src/playbook/local-build.sh new file mode 100644 index 0000000000..ad599d06d6 --- /dev/null +++ b/src/playbook/local-build.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +echo "Building Playbook..." +pwsh -NoP -EP Bypass -C "& \"$(dirname "$PWD")/local-build.ps1\" -AddLiveLog -ReplaceOldPlaybook -Removals WinverRequirement, Verification -DontOpenPbLocation"