Skip to content
Snippets Groups Projects
Commit 7273dfbd authored by madavi's avatar madavi
Browse files

bug 542 improvment to the code, license scan


Change-Id: Ia2c8da12c8ea8e99510b9bb8a8d4d2624b68b0ec
Signed-off-by: default avatarmadavi <jm00553988@techmahindra.com>
parent 16a96f53
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,8 @@
# Change log:
# 1. Bug 722 : Jayant Madavi : JM00553988@techmahindra.com : Enhancement to use new fossology server. Had to change the variable name at # couple of places, while scanning the variable name was adding curl as a license.
# 2.
# 2. Bug 542 : Jayant Madavi, Mrityunjay Yadav : JM00553988@techmahindra.com : 24-jul-2019 : Enhancement to raise exit in case files modified or added does # not contain license.
# 3.
echo GERRIT BRANCH is $GERRIT_BRANCH
dpkg -l wget &>/dev/null ||sudo apt-get install -y wget
......@@ -74,7 +75,8 @@ if [ $other -gt 0 ]; then
fi
if [ $nolicense -gt 0 ]; then
echo "WARNING: Unlicensed files found"
echo "FATAL: Unlicensed files found"
exit 2
fi
exit 0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment