diff --git a/package_check.sh b/package_check.sh index 78ebb6d..5087174 100755 --- a/package_check.sh +++ b/package_check.sh @@ -714,8 +714,8 @@ TEST_RESULTS () { # Get the name of the app from the repository name. app_name="$(basename --multiple --suffix=_ynh "$app_arg")" - # Extract the app part from the json file. From the name line to the url line. - json_app_part=$(sed -n "/$app_name/,/${app_arg//\//.}/p" "$script_dir/list.json") + # Extract the app part from the json file. From the name line to the next "}" line. + json_app_part=$(sed -n "/\"$app_name\"/,/}/p" "$script_dir/list.json") if [ -z "$json_app_part" ] then echo "$app_name for the repository $app_arg can't be found in the app list."