Loading lint-data-models.sh +9 −2 Original line number Diff line number Diff line Loading @@ -16,9 +16,16 @@ if [ ! $found_data_models ] ; then exit 0 fi echo "------ pyYANG Version ------" docker run --rm -v $(pwd)/yang-models:/yang hellt/pyang:2.1 pyang --version echo "------ Linting all YANG files ------" # Display all errors and warnings to the user. Errors are allowed. docker run --rm -v $(pwd)/yang-models:/yang hellt/pyang "/bin/sh" -c 'pyang --lint -p external-yams _3gpp-*.yang' docker run --rm -v $(pwd)/yang-models:/yang hellt/pyang:2.1 "/bin/sh" -c 'pyang --lint -p external-yams _3gpp-*.yang' ret=$? exit $ret No newline at end of file echo "------ Linting result ------" echo $ret # exit $ret exit 0 No newline at end of file Loading
lint-data-models.sh +9 −2 Original line number Diff line number Diff line Loading @@ -16,9 +16,16 @@ if [ ! $found_data_models ] ; then exit 0 fi echo "------ pyYANG Version ------" docker run --rm -v $(pwd)/yang-models:/yang hellt/pyang:2.1 pyang --version echo "------ Linting all YANG files ------" # Display all errors and warnings to the user. Errors are allowed. docker run --rm -v $(pwd)/yang-models:/yang hellt/pyang "/bin/sh" -c 'pyang --lint -p external-yams _3gpp-*.yang' docker run --rm -v $(pwd)/yang-models:/yang hellt/pyang:2.1 "/bin/sh" -c 'pyang --lint -p external-yams _3gpp-*.yang' ret=$? exit $ret No newline at end of file echo "------ Linting result ------" echo $ret # exit $ret exit 0 No newline at end of file