1
0
Fork 0
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:
Fabian Wilkens 2021-09-18 18:44:21 +02:00
parent 2e436989d9
commit c3a85ced37
No known key found for this signature in database
GPG key ID: 23DFA025BB4E9FAB

View file

@ -119,14 +119,14 @@ fi
ynh_replace_string \
--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"
find "$final_path_extensions/src/" -name "*.json" -print0 | while read -d $'\0' file
do
ynh_replace_string \
--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"
done