1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/synapse_ynh.git synced 2024-09-03 20:26:38 +02:00

fix shell check

This commit is contained in:
Josué Tille 2024-05-07 13:09:25 +02:00
parent 80afb8e5e7
commit e3d2e12256
No known key found for this signature in database
GPG key ID: 5F259226AD51F2F5

View file

@ -29,9 +29,9 @@ install_sources() {
ynh_setup_source --dest_dir="$code_dir"/ --source_id="synapse_prebuilt_armv7_$(lsb_release --codename --short)"
# Fix multi-instance support
for f in $(ls "$code_dir"/bin); do
for f in "$code_dir"/bin/*; do
if ! [[ $f =~ "__" ]]; then
ynh_replace_special_string --match_string='#!/opt/yunohost/matrix-synapse' --replace_string='#!'$code_dir --target_file="$code_dir"/bin/"$f"
ynh_replace_special_string --match_string='#!/opt/yunohost/matrix-synapse' --replace_string='#!'"$code_dir" --target_file="$f"
fi
done
else