Skip to content

Commit c0cf9ab

Browse files
committed
Fix terragrunt installation
1 parent 3779d6e commit c0cf9ab

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/main.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -125,20 +125,20 @@ function installTerragrunt {
125125
url="https://github.com/gruntwork-io/terragrunt/releases/download/${tgVersion}/terragrunt_linux_amd64"
126126

127127
echo "Downloading Terragrunt ${tgVersion}"
128-
curl -s -S -L -o /tmp/terragrunt_${tgVersion} ${url}
128+
curl -s -S -L -o /tmp/terragrunt ${url}
129129
if [ "${?}" -ne 0 ]; then
130130
echo "Failed to download Terragrunt ${tgVersion}"
131131
exit 1
132132
fi
133133
echo "Successfully downloaded Terragrunt ${tgVersion}"
134134

135-
echo "Unzipping Terragrunt ${tgVersion}"
136-
unzip -d /usr/local/bin /tmp/terragrunt_${tgVersion} &> /dev/null
135+
echo "Moving Terragrunt ${tgVersion} to PATH"
136+
mv /tmp/terragrunt /usr/local/bin
137137
if [ "${?}" -ne 0 ]; then
138-
echo "Failed to unzip Terragrunt ${tgVersion}"
138+
echo "Failed to move Terragrunt ${tgVersion}"
139139
exit 1
140140
fi
141-
echo "Successfully unzipped Terragrunt ${tgVersion}"
141+
echo "Successfully moved Terragrunt ${tgVersion}"
142142
}
143143

144144
function main {

0 commit comments

Comments
 (0)