Skip to content

Commit bafb75b

Browse files
committedOct 17, 2011
Fix string matching bug in Ubuntu install script.
Commit f58e63a introduced a bug that always set GIT to 'git-core'.
1 parent 8430104 commit bafb75b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎scripts/install/install_ubuntu.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,15 @@ confirm() {
77

88
GIT='git'
99

10+
LTS="Ubuntu 10.04"
1011
ISSUE=`cat /etc/issue`
1112
if [[ $ISSUE != Ubuntu* ]]
1213
then
1314
echo "This script is intended for use on Ubuntu, but this system appears";
1415
echo "to be something else. Your results may vary.";
1516
echo
1617
confirm
17-
elif [[ $ISSUE != "Ubuntu 10.04*" ]]
18+
elif [[ `expr match "$ISSUE" "$LTS"` -eq ${#LTS} ]]
1819
then
1920
GIT='git-core'
2021
fi

0 commit comments

Comments
 (0)
Failed to load comments.