Skip to content

Commit 71ff68b

Browse files
zhijianli88stellarhopper
authored andcommitted
rpmbuild.sh: Abort script when an error occurs
Abort early so that the real error message can be noticed easily. ========================== $ ./rpmbuild.sh Found CMake: /usr/bin/cmake (3.18.4) Run-time dependency libtraceevent found: NO (tried pkgconfig and cmake) ../meson.build:147:2: ERROR: Dependency "libtraceevent" not found, tried pkgconfig and cmake A full log can be found at /path/to/ndctl/build/meson-logs/meson-log.txt FAILED: build.ninja ... Signed-off-by: Li Zhijian <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vishal Verma <[email protected]>
1 parent b22d5b3 commit 71ff68b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rpmbuild.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ if ./git-version | grep -q dirty; then
1010
exit 1
1111
fi
1212
if [ ! -f $spec ]; then
13-
meson compile -C build rhel/ndctl.spec
13+
meson compile -C build rhel/ndctl.spec || exit
1414
spec=$(dirname $0)/build/rhel/ndctl.spec
1515
fi
1616
./make-git-snapshot.sh

0 commit comments

Comments
 (0)