Fix arm-ttk path

Signed-off-by: Brett Logan <lindluni@github.com>
This commit is contained in:
Brett Logan 2023-01-03 23:18:52 -05:00
parent fd42e54c17
commit 1137155331
2 changed files with 5 additions and 2 deletions

View file

@ -398,6 +398,7 @@ ARG PSSA_VERSION='1.21.0'
################ ################
# Set ENV vars # # Set ENV vars #
################ ################
ENV ARM_TTK_PSD1="/usr/lib/microsoft/arm-ttk/arm-ttk.psd1"
ENV IMAGE="standard" ENV IMAGE="standard"
ENV PATH="${PATH}:/var/cache/dotnet/tools:/usr/share/dotnet" ENV PATH="${PATH}:/var/cache/dotnet/tools:/usr/share/dotnet"

View file

@ -15,5 +15,7 @@ curl --retry 5 --retry-delay 5 -sL \
-H "Accept: application/vnd.github+json" \ -H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${GITHUB_TOKEN}" \ -H "Authorization: Bearer ${GITHUB_TOKEN}" \
"${url}" | tar -xz -C /usr/lib/microsoft "${url}" | tar -xz -C /usr/lib/microsoft
chmod a+x /usr/lib/microsoft/*/arm-ttk/arm-ttk.psd1 mv /usr/lib/microsoft/Azure-arm-ttk-*/arm-ttk /usr/lib/microsoft/arm-ttk
ln -sTf /usr/lib/microsoft/*/arm-ttk/arm-ttk.psd1 /usr/bin/arm-ttk rm -rf /usr/lib/microsoft/Azure-arm-ttk-*
chmod a+x /usr/lib/microsoft/arm-ttk/arm-ttk.psd1
ln -sTf /usr/lib/microsoft/arm-ttk/arm-ttk.psd1 /usr/bin/arm-ttk