diff options
author | Michael Schroeder <mls@suse.de> | 2016-09-21 13:31:19 +0200 |
---|---|---|
committer | Michael Schroeder <mls@suse.de> | 2016-09-21 13:31:19 +0200 |
commit | 7cb3657a4cd6878ba6bfc8f7291be2823d3974c2 (patch) | |
tree | 8c1e95110db6328bdfd727053048dcb6f1d7a00d /build-recipe-debbuild | |
parent | 619d2aa35474b8e93cfced3140f87e4b2b321360 (diff) |
More cleanup_and_exit refactoring
Diffstat (limited to 'build-recipe-debbuild')
-rw-r--r-- | build-recipe-debbuild | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/build-recipe-debbuild b/build-recipe-debbuild index 6065fd2..08a33a3 100644 --- a/build-recipe-debbuild +++ b/build-recipe-debbuild @@ -24,8 +24,7 @@ recipe_setup_debbuild() { TOPDIR=`chroot $BUILD_ROOT su -c "debbuild --eval '%_topdir'" - $BUILD_USER` if test -z "$TOPDIR"; then - echo "Error: TOPDIR empty" - cleanup_and_exit 1 + cleanup_and_exit 1 "Error: TOPDIR empty" fi test "$DO_INIT_TOPDIR" = false || rm -rf "$BUILD_ROOT$TOPDIR" mkdir -p "$BUILD_ROOT$TOPDIR" |