ethauvin
03/31/2017, 3:27 AM#!/bin/bash
cd "/c/"
rm -rf kobalt
ver=`curl -w "%{url_effective}" -I -L -s -S <https://github.com/cbeust/kobalt/releases/latest> -o /dev/null | tr '/' '\n' | tail -n1`
zip=~/Downloads/kobalt-${ver}.zip
curl -L <https://github.com/cbeust/kobalt/releases/download/${ver}/kobalt-${ver}.zip> -o $zip
unzip $zip
mv kobalt-${ver} kobalt
chmod 755 kobalt/bin/*