Seed arm-ttk directory

Signed-off-by: Brett Logan <lindluni@github.com>
This commit is contained in:
Brett Logan 2023-01-03 22:23:45 -05:00
parent b1386567ad
commit fd42e54c17

View file

@ -10,8 +10,10 @@ url=$(curl -s \
-H "Accept: application/vnd.github+json" \ -H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${GITHUB_TOKEN}" \ -H "Authorization: Bearer ${GITHUB_TOKEN}" \
https://api.github.com/repos/Azure/arm-ttk/releases/latest | jq -r '.tarball_url') https://api.github.com/repos/Azure/arm-ttk/releases/latest | jq -r '.tarball_url')
mkdir -p /usr/lib/microsoft
curl --retry 5 --retry-delay 5 -sL \ 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
ln -sTf /usr/lib/microsoft/arm-ttk-master/arm-ttk/arm-ttk.psd1 /usr/bin/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