diff options
author | Kenneth Endfinger | 2020-02-08 01:24:49 -0500 |
---|---|---|
committer | Kenneth Endfinger | 2020-02-08 01:24:49 -0500 |
commit | 7ed4f7fa502f0d6b515735a77a5b680f288f9992 (patch) | |
tree | bc6ebc94bc0cf81ff7c6e8e5659d71cb762311c1 | |
parent | 98bf7bc36a3870cb1d125db8f469104f3b99dddd (diff) | |
download | aur-7ed4f7fa502f0d6b515735a77a5b680f288f9992.tar.gz |
Update Check for Update Script
-rwxr-xr-x | check-for-update.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/check-for-update.sh b/check-for-update.sh index 2a5fe865d4df..b83208f661e5 100755 --- a/check-for-update.sh +++ b/check-for-update.sh @@ -7,7 +7,7 @@ REPOSITORY="scalameta/scalafmt" PKG=$(cat .SRCINFO | grep "pkgbase" | head -n1 | awk '{print $3}') CURRENT=$(cat .SRCINFO | grep "pkgver" | head -n1 | awk '{print $3}') -LATEST=$(curl --silent -L "https://api.github.com/repos/${REPOSITORY}/tags" | jq -r '.[].name' | grep -v -- "-" | head -n1 | sed 's/v//g') +LATEST=$(curl -n --silent -L "https://api.github.com/repos/${REPOSITORY}/tags" | jq -r '.[].name' | grep -v -- "-" | head -n1 | sed 's/v//g') if [ "${LATEST}" != "${CURRENT}" ] then echo "${PKG} : AUR ${CURRENT} != GitHub ${LATEST}" |