diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2009-02-23 13:54:53 +0100 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2009-02-23 13:54:53 +0100 |
commit | 0dc55d79ea693f7697358dc091636dd38a8f6656 (patch) | |
tree | de94938b8001766e6a1245ccc89644fffd845f96 | |
parent | bc34b1f1193c3a3b50b984a843dd13c0df2dbb31 (diff) | |
download | dotfiles-0dc55d79ea693f7697358dc091636dd38a8f6656.tar.gz dotfiles-0dc55d79ea693f7697358dc091636dd38a8f6656.tar.xz dotfiles-0dc55d79ea693f7697358dc091636dd38a8f6656.zip |
lets check first weather git is available or not
-rwxr-xr-x | godot.sh | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 |