mirror of
https://github.com/mtan93/Installomator.git
synced 2026-03-08 05:31:53 +00:00
Merge pull request #58 from Raptor399/end-of-string-matching
Only match GitHub files that end in the filetype
This commit is contained in:
@@ -147,7 +147,7 @@ downloadURLFromGit() { # $1 git user name, $2 git repo name
|
||||
| awk -F '"' "/browser_download_url/ && /$archiveName/ { print \$4 }")
|
||||
else
|
||||
downloadURL=$(curl --silent --fail "https://api.github.com/repos/$gitusername/$gitreponame/releases/latest" \
|
||||
| awk -F '"' "/browser_download_url/ && /$filetype/ { print \$4 }")
|
||||
| awk -F '"' "/browser_download_url/ && /$filetype\"/ { print \$4 }")
|
||||
fi
|
||||
if [ -z "$downloadURL" ]; then
|
||||
printlog "could not retrieve download URL for $gitusername/$gitreponame"
|
||||
|
||||
Reference in New Issue
Block a user