mirror of
https://github.com/mtan93/Installomator.git
synced 2026-03-08 05:31:53 +00:00
Update r.sh
This commit is contained in:
@@ -1,8 +1,7 @@
|
|||||||
r)
|
r)
|
||||||
# credit: Tadayuki Onishi (@kenchan0130)
|
|
||||||
name="R"
|
name="R"
|
||||||
type="pkg"
|
type="pkg"
|
||||||
downloadURL=$( curl -fsL https://formulae.brew.sh/api/cask/r.json | sed -n 's/^.*"url":"\([^"]*\)".*$/\1/p' )
|
downloadURL="https://cloud.r-project.org/bin/macosx/$( curl -fsL https://cloud.r-project.org/bin/macosx/ | grep -m 1 -o '<a href=".*pkg">' | sed -E 's/.+"(.+)".+/\1/g' )"
|
||||||
appNewVersion=$(curl -fsL https://formulae.brew.sh/api/cask/r.json | sed -n 's/^.*"version":"\([^"]*\)".*$/\1/p')
|
appNewVersion=$(echo "${downloadURL}" | sed -E 's/.*\/[a-zA-Z]*-([0-9.]*)\..*/\1/g')
|
||||||
expectedTeamID="VZLD955F6P"
|
expectedTeamID="VZLD955F6P"
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user