Skip to content

Commit

Permalink
Update updater.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
justinmerrell committed May 10, 2022
1 parent e563b91 commit 467d9a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/updater.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ if [ "$current_version" != "$latest_version" ]; then
echo "Update URL: ${update_url}"

# Get the filename of the latest version.
zip_name = curl -H "Authorization: token ${access_token}" \
zip_name=curl -H "Authorization: token ${access_token}" \
-J --location "${update_url}"

echo "Zip name: ${zip_name}"

# Download the latest version.
curl -H "Authorization: token ${access_token}" \
--output "/opt/Stem/branch_staging/${latest_version}.zip" \
--location "${update_url}"
--silent --location "${update_url}"

# Unzip the latest version.
unzip /opt/Stem/branch_staging/"$latest_version".zip -d /opt/Stem/branch_staging
Expand Down

0 comments on commit 467d9a5

Please sign in to comment.