From fd42e54c1791f98e792821966825a65c97cdc484 Mon Sep 17 00:00:00 2001 From: Brett Logan Date: Tue, 3 Jan 2023 22:23:45 -0500 Subject: [PATCH] Seed arm-ttk directory Signed-off-by: Brett Logan --- scripts/install-arm-ttk.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/install-arm-ttk.sh b/scripts/install-arm-ttk.sh index 6a537ee1..91fa8f6c 100755 --- a/scripts/install-arm-ttk.sh +++ b/scripts/install-arm-ttk.sh @@ -10,8 +10,10 @@ url=$(curl -s \ -H "Accept: application/vnd.github+json" \ -H "Authorization: Bearer ${GITHUB_TOKEN}" \ 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 \ -H "Accept: application/vnd.github+json" \ -H "Authorization: Bearer ${GITHUB_TOKEN}" \ "${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