Skip to content

Commit

Permalink
[dist] do a simple syntax check in check section
Browse files Browse the repository at this point in the history
  • Loading branch information
bugfinder committed Dec 17, 2018
1 parent 738f194 commit 40c5af7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dist/build.spec
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ test -e baselibs_global.conf || exit 1
%endif

%check
for i in build build-* ; do bash -n $i || exit 1 ; done
if [ `whoami` != "root" ]; then
echo "WARNING: Not building as root, tests did not run!"
exit 0
Expand Down

0 comments on commit 40c5af7

Please sign in to comment.