Spaces:
Runtime error
Runtime error
File size: 486 Bytes
d70d08b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
#!/bin/bash
if ! [ -x "$(command -v git)" ]
then
echo "Install git to update"
exit
fi
if [ -x "$(command -v git)" ]
then
if [ -d ".git" ]
then
git config --local url."https://".insteadOf git://
git config --local url."https://github.com/".insteadOf [email protected]:
git config --local url."https://".insteadOf ssh://
git pull --rebase --autostash
else
echo "Only able to update if you clone the repository (git clone https://github.com/teralomaniac/clewd.git)"
fi
fi |