diff --git a/3rd-party-packages/nvidia_build.sh b/3rd-party-packages/nvidia_build.sh index b2c094b..20de558 100755 --- a/3rd-party-packages/nvidia_build.sh +++ b/3rd-party-packages/nvidia_build.sh @@ -120,7 +120,8 @@ if ! rpm -q kernel-devel-$KERNEL_VER; then exit 1 fi -rpmbuild -D "kernels $KERNEL_VER" --rebuild nvidia-kmod-*.src.rpm +rpmbuild -D "kernels $KERNEL_VER" --rebuild nvidia-kmod-*.src.rpm || exit 1 # Unfortunately --define _rpmdir doesn't work with --rebuild RPMDIR=`rpm -E '%_rpmdir'` -mv $RPMDIR/$basearch/kmod-nvidia-$KERNEL_VER*rpm rpm/$basearch/ +mv $RPMDIR/$basearch/kmod-nvidia-$KERNEL_VER*rpm rpm/$basearch/ || exit 1 +echo Done.