packaging: cleanup() did not read the value of $CLEANUP
authormuxator <a.mux@inwind.it>
Tue, 09 Oct 2018 22:24:38 +0200
changeset 40106 930bce0741de
parent 40105 d3780c8f3180
child 40107 212a52d8e9d8
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.
contrib/packaging/builddeb
--- a/contrib/packaging/builddeb	Tue Oct 09 22:18:35 2018 +0200
+++ b/contrib/packaging/builddeb	Tue Oct 09 22:24:38 2018 +0200
@@ -15,7 +15,7 @@
 DEBFLAGS=-b
 
 cleanup() {
-    if [ '$CLEANUP' ]; then
+    if [ "$CLEANUP" ]; then
         rm -r "$PWD/debian";
     fi
 }