Fix level 6 regression

This commit is contained in:
Maniack Crudelis 2019-07-07 23:22:21 +02:00 committed by GitHub
parent 5ddc3dc90c
commit b691153c8a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -673,6 +673,7 @@ TEST_RESULTS () {
# Default value, YEP 1.7 not checked # Default value, YEP 1.7 not checked
YEP17=-1 YEP17=-1
YEP17_labriqueinternet=-1 YEP17_labriqueinternet=-1
YEP17_failed=0
if echo "$app_arg" | grep --extended-regexp --quiet "https?:\/\/" if echo "$app_arg" | grep --extended-regexp --quiet "https?:\/\/"
then then
# If the app have been picked from github, check if this app was under the YunoHost-Apps organisation # If the app have been picked from github, check if this app was under the YunoHost-Apps organisation
@ -683,11 +684,12 @@ TEST_RESULTS () {
YEP17_labriqueinternet=$(echo "$app_arg" | grep --ignore-case --count "github.com/labriqueinternet/") YEP17_labriqueinternet=$(echo "$app_arg" | grep --ignore-case --count "github.com/labriqueinternet/")
if [ $YEP17 -ne 1 ] && [ $YEP17_labriqueinternet -ne 1 ]; then if [ $YEP17 -ne 1 ] && [ $YEP17_labriqueinternet -ne 1 ]; then
ECHO_FORMAT "This app doesn't respect the YEP 1.7 ! (https://yunohost.org/#/packaging_apps_guidelines_fr)\n" "red" ECHO_FORMAT "This app doesn't respect the YEP 1.7 ! (https://yunohost.org/#/packaging_apps_guidelines_fr)\n" "red"
YEP17_failed=1
fi fi
fi fi
# Validated if YEP 1.7 respected # Validated if YEP 1.7 respected
if [ $YEP17 -ne 0 ] && [ $YEP17_labriqueinternet -ne 0 ] if [ $YEP17_failed -eq 0 ]
then level[6]=2 then level[6]=2
else level[6]=0 else level[6]=0
fi fi