Set pwsh to be executable

This commit is contained in:
Brett Logan 2022-12-02 02:37:36 -05:00
parent 6aafc9b874
commit c839c0b828
No known key found for this signature in database
GPG key ID: 52ED7D1F56850EE6

View file

@ -507,6 +507,7 @@ RUN mkdir -p ${PWSH_DIRECTORY} \
| cut -d '"' -f 4 \
| xargs -n 1 wget -q -O - \
| tar -xzC ${PWSH_DIRECTORY} \
&& chmod +x ${PWSH_DIRECTORY}/pwsh \
&& ln -sf ${PWSH_DIRECTORY}/pwsh /usr/bin/pwsh \
&& pwsh -c 'Install-Module -Name PSScriptAnalyzer -RequiredVersion ${PSSA_VERSION} -Scope AllUsers -Force'