Fix sed level 8

This commit is contained in:
Kayou 2019-07-07 11:02:51 +02:00 committed by GitHub
parent f24208fafc
commit a2552ab1b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -715,7 +715,7 @@ TEST_RESULTS () {
# Get the name of the app from the repository name. # Get the name of the app from the repository name.
app_name="$(basename --multiple --suffix=_ynh "$app_arg")" app_name="$(basename --multiple --suffix=_ynh "$app_arg")"
# Extract the app part from the json file. From the name line to the url line. # 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") json_app_part=$(sed -n "/${app_name}/,/${app_arg//\//.}/{p; /${app_arg//\//.}/q}" "$script_dir/list.json")
if [ -z "$json_app_part" ] if [ -z "$json_app_part" ]
then then
echo "$app_name for the repository $app_arg can't be found in the app list." echo "$app_name for the repository $app_arg can't be found in the app list."