mirror of
https://github.com/YunoHost-Apps/snserver_ynh.git
synced 2024-09-03 20:26:22 +02:00
Fix: change_url script - wrong variable
This commit is contained in:
parent
2e436989d9
commit
c3a85ced37
1 changed files with 2 additions and 2 deletions
|
@ -119,14 +119,14 @@ fi
|
||||||
|
|
||||||
ynh_replace_string \
|
ynh_replace_string \
|
||||||
--match_string='url": "https://.*/extensions/src/' \
|
--match_string='url": "https://.*/extensions/src/' \
|
||||||
--replace_string='url": "https://'$domain$path'/extensions/src/' \
|
--replace_string='url": "https://'$new_domain$path'/extensions/src/' \
|
||||||
--target_file="$final_path_extensions/repo.json"
|
--target_file="$final_path_extensions/repo.json"
|
||||||
|
|
||||||
find "$final_path_extensions/src/" -name "*.json" -print0 | while read -d $'\0' file
|
find "$final_path_extensions/src/" -name "*.json" -print0 | while read -d $'\0' file
|
||||||
do
|
do
|
||||||
ynh_replace_string \
|
ynh_replace_string \
|
||||||
--match_string='url": "https://.*/extensions/src/' \
|
--match_string='url": "https://.*/extensions/src/' \
|
||||||
--replace_string='url": "https://'$domain$path'extensions/src/' \
|
--replace_string='url": "https://'$new_domain$path'extensions/src/' \
|
||||||
--target_file="$file"
|
--target_file="$file"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue