1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/element_ynh.git synced 2024-09-03 18:36:08 +02:00

Fix patch source

This commit is contained in:
Josué Tille 2018-09-11 09:38:27 +02:00
parent 924859de87
commit 88e6a1492e

View file

@ -47,10 +47,12 @@ install_source() {
a=${a//'}'/'\}'} a=${a//'}'/'\}'}
a=${a//'.'/'\.'} a=${a//'.'/'\.'}
a=${a//'*'/'\*'} a=${a//'*'/'\*'}
a=${a//'^'/'\^'}
a=${a//'$'/'\$'}
} }
# We get the name of the Lifecycle objet # We get the name of the Lifecycle objet
Lifecycle_object_name=$(egrep -o "onLoggedIn:\w+\.setLoggedIn," bundle.js $final_path/bundles/*/bundle.js | egrep -o ":\w+\." | egrep -o "\w") Lifecycle_object_name=$(egrep -o 'onLoggedIn:[\w\$]+\.setLoggedIn,' $final_path/bundles/*/bundle.js | egrep -o ':[\w\$]+\.' | egrep -o '[\w\$]')
# We get the part witch we need to patch and create a regular expression # We get the part witch we need to patch and create a regular expression
a='case"start_login":this.setStateForNewView({view:unnamed_object.LOGIN}),this.notifyNewScreen("login");break;' a='case"start_login":this.setStateForNewView({view:unnamed_object.LOGIN}),this.notifyNewScreen("login");break;'