kernelimplode/clewd
0
1#!/bin/bash2 3if ! [ -x "$(command -v git)" ]4then5 echo "Install git to update"6 exit7fi8 9if [ -x "$(command -v git)" ]10then11 if [ -d ".git" ]12 then13 git config --local url."https://".insteadOf git://14 git config --local url."https://github.com/".insteadOf git@github.com:15 git config --local url."https://".insteadOf ssh://16 git pull --rebase --autostash17 else18 echo "Only able to update if you clone the repository (git clone https://github.com/teralomaniac/clewd.git)"19 fi20fi