# HG changeset patch # User muxator # Date 2018-10-09 20:24:38 # Node ID 930bce0741de9788394a2c25d20c959708bbb81f # Parent d3780c8f3180dc8de038c67ababa56563a24a258 packaging: cleanup() did not read the value of $CLEANUP When the original author put CLEANUP in a conditional statement he was probably willing to use it to control the "if". This change tries to restore that behaviour: the "rm" clause is triggered if and only if CLEANUP is defined and not empty. diff --git a/contrib/packaging/builddeb b/contrib/packaging/builddeb --- a/contrib/packaging/builddeb +++ b/contrib/packaging/builddeb @@ -15,7 +15,7 @@ CODENAME=`lsb_release -cs 2> /dev/null | DEBFLAGS=-b cleanup() { - if [ '$CLEANUP' ]; then + if [ "$CLEANUP" ]; then rm -r "$PWD/debian"; fi }