1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-18 03:20:59 +01:00

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:
John Chee 2011-10-17 10:18:18 -07:00
parent 84301044ab
commit bafb75bdea

View file

@ -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