summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2009-02-23 13:54:53 +0100
committerAlexander Sulfrian <alexander@sulfrian.net>2009-02-23 13:54:53 +0100
commit0dc55d79ea693f7697358dc091636dd38a8f6656 (patch)
treede94938b8001766e6a1245ccc89644fffd845f96
parentbc34b1f1193c3a3b50b984a843dd13c0df2dbb31 (diff)
downloaddotfiles-0dc55d79ea693f7697358dc091636dd38a8f6656.tar.gz
dotfiles-0dc55d79ea693f7697358dc091636dd38a8f6656.tar.xz
dotfiles-0dc55d79ea693f7697358dc091636dd38a8f6656.zip
lets check first weather git is available or not
-rwxr-xr-xgodot.sh5
1 files changed, 5 insertions, 0 deletions
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