Skip to content

Commit

Permalink
Fix unquoted string in download script
Browse files Browse the repository at this point in the history
Add quotes to fix linter warning.
  • Loading branch information
HeavyWombat committed Aug 2, 2024
1 parent 43c3d6c commit e18bb01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/download-latest.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

# Copyright © 2021 The Homeport Team
# Copyright © 2024 The Homeport Team
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
Expand Down Expand Up @@ -37,7 +37,7 @@ fi

if [[ $# -eq 0 ]]; then
# Find the latest version using the GitHub API
SELECTED_TAG="$(curl --silent --location https://api.github.com/repos/${ORG}/${REPO}/releases | jq --raw-output 'map(select((.assets | length) > 0)) | .[0].tag_name')"
SELECTED_TAG="$(curl --silent --location "https://api.github.com/repos/${ORG}/${REPO}/releases" | jq --raw-output 'map(select((.assets | length) > 0)) | .[0].tag_name')"
else
# Use provided argument as tag to download
SELECTED_TAG="$1"
Expand Down

0 comments on commit e18bb01

Please sign in to comment.