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:
parent
924859de87
commit
88e6a1492e
1 changed files with 8 additions and 6 deletions
|
@ -47,10 +47,12 @@ install_source() {
|
|||
a=${a//'}'/'\}'}
|
||||
a=${a//'.'/'\.'}
|
||||
a=${a//'*'/'\*'}
|
||||
a=${a//'^'/'\^'}
|
||||
a=${a//'$'/'\$'}
|
||||
}
|
||||
|
||||
# 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
|
||||
a='case"start_login":this.setStateForNewView({view:unnamed_object.LOGIN}),this.notifyNewScreen("login");break;'
|
||||
|
|
Loading…
Add table
Reference in a new issue