mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
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
3b1d6475b9
commit
db29f7792c
@ -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…
x
Reference in New Issue
Block a user