From e3d2e12256bdaa2c090520b0880b39e4f6c73b13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Tue, 7 May 2024 13:09:25 +0200 Subject: [PATCH] fix shell check --- scripts/_common.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index e3bdca4..6c0f7db 100755 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -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