mirror of https://github.com/apache/cloudstack.git
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:
parent
d279f566af
commit
db09c6ae47
|
|
@ -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=$?
|
||||
|
|
|
|||
Loading…
Reference in New Issue