Skip to content
Snippets Groups Projects
Commit f4ca1967 authored by Aleksandr Vodianov's avatar Aleksandr Vodianov
Browse files

fixed error if build failed

parent e2febb4e
No related branches found
No related tags found
No related merge requests found
......@@ -28,7 +28,7 @@ error=0
#2DO: add trap command to clean the sources on exit.
trap cleanup SIGINT
codename=$(lsb_release -a | grep Codename | cut -f2)
dpkg-buildpackage -J -us --changes-option=--build=any -uc
dpkg-buildpackage -J -us --changes-option=--build=any -uc || error=$?
if [[ $(ls .. | grep 'dbgsym') != "" ]]; then
rm -f ../*dbgsym*
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment