From 0dc55d79ea693f7697358dc091636dd38a8f6656 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Mon, 23 Feb 2009 13:54:53 +0100 Subject: lets check first weather git is available or not --- godot.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/godot.sh b/godot.sh index 56ae0c4..d0d2c2a 100755 --- a/godot.sh +++ b/godot.sh @@ -4,7 +4,12 @@ TARGET=".dotfiles" if [[ ! -e "${HOME}/${TARGET}" ]]; then + if hash git > /dev/null 2>&1 ; then git clone git://git.animux.de/dotfiles.git "${HOME}/${TARGET}" + else + echo -e "\033[31m*\033[0m git is not available! This script will NOT work! Exiting..." + return + fi fi pushd $HOME >/dev/null -- cgit v1.2.3