bug 10855: the issue is caused by expanding content that has space inside at sub-shell, use back quote substitution to enforce the correct shell macro expansion

This commit is contained in:
Kelven Yang 2011-07-26 10:38:27 -07:00
parent 3b1d6475b9
commit db29f7792c

View File

@ -42,9 +42,11 @@ create_htaccess() {
htaccessFile=$htaccessFolder/.htaccess
mkdir -p $htaccessFolder
touch $htaccessFile
grep -w $file $htaccessFile
if [ $? -gt 0 ]; then
#grep -w $file $htaccessFile
grep -F `echo $entry` $htaccessFile
if [ \$? -gt 0 ]; then
echo -e $entry >> $htaccessFile;
fi
result=$?