mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
escaping sed quotes correctly
This commit is contained in:
parent
aabcda094e
commit
979270dcc2
1 changed files with 4 additions and 4 deletions
|
@ -9,11 +9,11 @@ if [ $? -ne 0 ];then
|
||||||
else
|
else
|
||||||
echo Await patch already applied. Skipping. . .
|
echo Await patch already applied. Skipping. . .
|
||||||
fi
|
fi
|
||||||
cat $SITE_PACKAGES/firstuseauthenticator/firstuseauthenticator.py |grep data['data'].lower()'
|
cat $SITE_PACKAGES/firstuseauthenticator/firstuseauthenticator.py |grep "data\['username'\].lower\(\)"
|
||||||
if [ $? -ne 0 ];then
|
if [ $? -ne 0 ];then
|
||||||
echo Updating to data['username'].lower()
|
echo Updating to data['username'].lower\(\)
|
||||||
sed -i -e's/data['username']/data['username'].lower()/' $SITE_PACKAGES/firstuseauthenticator/firstuseauthenticator.py
|
sed -i -e"s/data\['username'\]/data\['username'\].lower\(\)/" $SITE_PACKAGES/firstuseauthenticator/firstuseauthenticator.py
|
||||||
else
|
else
|
||||||
echo username.lower() patch already applied. Skipping. . .
|
echo username.lower\(\) patch already applied. Skipping. . .
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue