Fail check if licensecheck missing

This commit is contained in:
Nyall Dawson 2018-06-04 08:39:20 +10:00
parent 8b44b06ea9
commit 48b117e0db

View File

@ -5,6 +5,15 @@
INCLUDE_EXTENSIONS="h|cpp|hpp|py|c"
EXCLUDE_LIST="(.*\/(qtermwidget)\/|ui_defaults\\.h|CREDITS|TODO|README|URI|^[^.]*$|.*\\.(?!($INCLUDE_EXTENSIONS)$))"
# check for existance of licensecheck first
has_licensecheck=$( licensecheck )
if licensecheck ; then
echo "licensecheck installed!"
else
echo "licensecheck not installed!"
exit 1
fi
DIR=$(git rev-parse --show-toplevel)
pushd ${DIR} > /dev/null