Fix string matching bug in Ubuntu install script.
Commit f58e63a917 introduced a bug that
always set GIT to 'git-core'.
This commit is contained in:
@@ -7,6 +7,7 @@ confirm() {
|
|||||||
|
|
||||||
GIT='git'
|
GIT='git'
|
||||||
|
|
||||||
|
LTS="Ubuntu 10.04"
|
||||||
ISSUE=`cat /etc/issue`
|
ISSUE=`cat /etc/issue`
|
||||||
if [[ $ISSUE != Ubuntu* ]]
|
if [[ $ISSUE != Ubuntu* ]]
|
||||||
then
|
then
|
||||||
@@ -14,7 +15,7 @@ then
|
|||||||
echo "to be something else. Your results may vary.";
|
echo "to be something else. Your results may vary.";
|
||||||
echo
|
echo
|
||||||
confirm
|
confirm
|
||||||
elif [[ $ISSUE != "Ubuntu 10.04*" ]]
|
elif [[ `expr match "$ISSUE" "$LTS"` -eq ${#LTS} ]]
|
||||||
then
|
then
|
||||||
GIT='git-core'
|
GIT='git-core'
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user