catch git clone error
This commit is contained in:
@@ -109,10 +109,13 @@ esac
|
|||||||
case $distro in
|
case $distro in
|
||||||
Arch|Debian)
|
Arch|Debian)
|
||||||
echo "Emacs configuration"
|
echo "Emacs configuration"
|
||||||
|
|
||||||
mkdir -p ~/.config/emacs
|
folder="${HOME}/.config/emacs"
|
||||||
|
mkdir -p $folder
|
||||||
echo "git clone"
|
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 ~/
|
cp -r ~/.config/emacs/scripts/texmf ~/
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user