make: lint a couple of shell scripts we can easily find

This commit is contained in:
Franco Fichtner 2016-03-04 15:43:26 +01:00
parent 159d2fd20e
commit 11561ba4da
2 changed files with 2 additions and 2 deletions

View File

@ -168,6 +168,8 @@ plist: force
@${MAKE} -C ${.CURDIR}/src plist
lint: force
find ${.CURDIR}/src ${.CURDIR}/scripts \
-name "*.sh" -type f -print0 | xargs -0 -n1 sh -n
find ${.CURDIR}/src ${.CURDIR}/lang/dynamic/helpers \
! -name "*.xml" ! -name "*.xml.sample" ! -name "*.eot" \
! -name "*.svg" ! -name "*.woff" ! -name "*.woff2" \

View File

@ -226,6 +226,4 @@ if [ "$pkg_running" == "" ]; then
last_check=`date`
# Write our json structure to disk
echo "{\"connection\":\"$connection\",\"repository\":\"$repository\",\"last_check\":\"$last_check\",\"updates\":\"$updates\",\"download_size\":\"$download_size\",\"extra_space_required\":\"$required_space\",\"new_packages\":[$packages_new],\"reinstall_packages\":[$packages_reinstall],\"upgrade_packages\":[$packages_upgraded],\"upgrade_needs_reboot\":\"$upgrade_needs_reboot\"}"
else
# pkg is already running, quitting
fi