Get rid of the work directory on success.
[util-vserver.git] / scripts / vserver-build.template
index b56a3e4..b2efab5 100644 (file)
@@ -87,12 +87,12 @@ for t in "${TEMPLATE[@]}"; do
 
     $DECOMPRESS "$t" | $EXTRACT
 done
-popd &> /dev/null
 
-test -z "$no_dev_sanity" || {
+test -z "$no_dev_sanity" && {
     rm -rf dev/*
     populateDev
 }
+popd &> /dev/null
 
 test -z "$BUILD_INITPOST" || "$BUILD_INITPOST" "$SETUP_CONFDIR" "$UTIL_VSERVER_VARS"