fix TERM for colored output
[util-vserver.git] / scripts / vserver-build.template
index b56a3e4..dc5d1c0 100644 (file)
@@ -15,7 +15,7 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
-tmp=$(getopt -o '+d:t:' --long debug,pkgmgmt,template: -n "vserver-build.template" -- "$@") || exit 1
+tmp=$(getopt -o '+d:t:' --long debug,pkgmgmt,template:,nodevsanity -n "vserver-build.template" -- "$@") || exit 1
 eval set -- "$tmp"
 
 . "$_LIB_VSERVER_BUILD_FUNCTIONS_PKGMGMT"
@@ -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"