catch git clone error
This commit is contained in:
@@ -109,10 +109,13 @@ esac
|
||||
case $distro in
|
||||
Arch|Debian)
|
||||
echo "Emacs configuration"
|
||||
|
||||
mkdir -p ~/.config/emacs
|
||||
|
||||
folder="${HOME}/.config/emacs"
|
||||
mkdir -p $folder
|
||||
echo "git clone"
|
||||
git clone http://gogs.weseng.de/daniel/emacs.git ~/.config/emacs
|
||||
if ! git clone http://gogs.weseng.de/daniel/emacs.git "${folder}" 2>/dev/null && test -d "${folder}" ; then
|
||||
echo "clone failed because the folder ${folder} exists"
|
||||
fi
|
||||
|
||||
cp -r ~/.config/emacs/scripts/texmf ~/
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user