``` #!/bin/bash cd "/c/" rm -rf kobalt ver=`curl ...
# kobalt
e
Copy code
#!/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/*