mirror of
https://github.com/YunoHost/package_check.git
synced 2024-09-03 20:06:20 +02:00
commit
85eac0332e
1 changed files with 2 additions and 2 deletions
|
@ -714,8 +714,8 @@ 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 next "}" line.
|
||||||
json_app_part=$(sed -n "/$app_name/,/${app_arg//\//.}/p" "$script_dir/list.json")
|
json_app_part=$(sed -n "/\"$app_name\"/,/}/p" "$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."
|
||||||
|
|
Loading…
Add table
Reference in a new issue