From bafb75bdea55872afb73783574311c2ced5ca22b Mon Sep 17 00:00:00 2001 From: John Chee Date: Mon, 17 Oct 2011 10:18:18 -0700 Subject: [PATCH] Fix string matching bug in Ubuntu install script. Commit f58e63a9178d90029fccc45d42ac80edff9838b4 introduced a bug that always set GIT to 'git-core'. --- scripts/install/install_ubuntu.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/install/install_ubuntu.sh b/scripts/install/install_ubuntu.sh index 0350e9209e..bd6d0452e6 100755 --- a/scripts/install/install_ubuntu.sh +++ b/scripts/install/install_ubuntu.sh @@ -7,6 +7,7 @@ confirm() { GIT='git' +LTS="Ubuntu 10.04" ISSUE=`cat /etc/issue` if [[ $ISSUE != Ubuntu* ]] then @@ -14,7 +15,7 @@ then echo "to be something else. Your results may vary."; echo confirm -elif [[ $ISSUE != "Ubuntu 10.04*" ]] +elif [[ `expr match "$ISSUE" "$LTS"` -eq ${#LTS} ]] then GIT='git-core' fi