Initial commit.

This commit is contained in:
Cyteen 2018-05-08 18:10:42 +01:00
parent 785bfe1291
commit 02eb38b777
1 changed files with 11 additions and 0 deletions

11
020_onivim.sh Normal file
View File

@ -0,0 +1,11 @@
apt-get install jq
set +x
PROJECT=onivim/oni
RELEASE=$(curl "https://api.github.com/repos/${PROJECT}/releases?per_page=5" | jq -r '.[0] | .tag_name')
VERSION=$(echo "${RELEASE}" | cut -c 2- | cut -f1 -d"-")
DOWNLOAD_DIR=/tmp
wget -c --directory-prefix "${DOWNLOAD_DIR}" https://github.com/onivim/oni/releases/download/"${RELEASE}"/Oni-"${VERSION}"-amd64-linux.deb
sudo dpkg -i "${DOWNLOAD_DIR}/Oni-${VERSION}-amd64-linux.deb"