Commit 0ccf2813 authored by Miguel Angel Reina Ortega's avatar Miguel Angel Reina Ortega
Browse files

Fix for absence of required files to be validated

parent 1bd789ea
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -21,7 +21,7 @@ echo "------ Linting modified YANG files ------"
# If there are no YANG, JSON or XML files, then simply exit
ls | grep -q 'yang'
found_data_models=$?
if [ ! $found_data_models ] ; then 
if [ $found_data_models == 1 ] ; then 
    echo "-- No YANG files." >>$LOGFILE
    exit 0
fi
+1 −1
Original line number Diff line number Diff line
@@ -44,7 +44,7 @@ echo -e "\n------ Validating all YAML files (may takes several minutes) ------"
# If there are no YAML file, simply exit
ls | grep -q yaml
found_yaml=$?
if [ ! $found_yaml ] ; then 
if [ $found_yaml == 1 ] ; then 
    echo "-- No YAML files." >> $LOGFILE
    exit 0
fi
+1 −1
Original line number Diff line number Diff line
@@ -21,7 +21,7 @@ echo "------ Validating modified YANG files ------"
# If there are no YANG, JSON or XML files, then simply exit
ls | grep -q 'yang'
found_data_models=$?
if [ ! $found_data_models ] ; then 
if [ $found_data_models == 1 ] ; then 
    echo "-- No YANG files.">>$LOGFILE
    exit 0
fi