get_latest_release() {
curl --silent "https://api.github.com/repos/$1/$2/releases/latest" | # Get latest release from GitHub api
- grep '"tag_name":' | # Get tag line
+ grep '"browser_download_url"' | grep 'nightly-ubuntu' |
sed -E 's/.*"([^"]+)".*/\1/' # Pluck JSON value
}
update() {
new_release=$(get_latest_release $1 $2)
url=https://github.com/$1/$2/releases/download
- file=${3}linux.tar.gz
+ file=${2}*.tar.gz
wget "$url/$new_release/$file"
tar -zxvf $file
rm $file
}
-git clone --recursive https://github.com/Gwion/Gwion
-make -C Gwion
-cp Gwion/gwion .
+#git clone --recursive https://github.com/Gwion/Gwion
+#make -C Gwion
+#cp Gwion/gwion .
-#!update Gwion Gwion gwion-
+update Gwion gwion
update fennecdjay mdr
update fennecdjay cmojify