From 7c005f0b8037b72271c2e710a9fbd8c484b9417e Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Tue, 29 Jan 2013 17:33:24 +0900 Subject: [PATCH] do not add txz config when xz is not available --- setup.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.sh b/setup.sh index a44ee38..ab3fecb 100755 --- a/setup.sh +++ b/setup.sh @@ -58,7 +58,8 @@ git_config(){ $_gitconfig status.relativePaths false $_gitconfig status.showUntrackedFiles normal $_gitconfig log.date iso - $_gitconfig tar.txz.command "xz -c" + type xz && \ + $_gitconfig tar.txz.command "xz -c" $_gitconfig alias.graph "log --graph --date-order -C -M --pretty=tformat:\"%C(green)%h%C(reset) %C(white)%ad%C(reset) %C(red)%an%C(reset)%C(yellow)%d%C(reset) %C(white bold)%s%C(reset)\" --all --date=iso -n 499" $_gitconfig alias.st "status -s -b"