BUILD="${HOME}/git-build"
-echo "Updating $BUILD"
-cd $BUILD
-git pull
-cd -
-
LOGS=$HOME/machines
[ -d $LOGS ] || { echo "Creating logs dir $LOGS" ; mkdir -p $LOGS; }
[ -d "$BUILD" ] || usage "Could not find directory $BUILD"
[ -d /vservers/$container ] && usage "container $container already exists in /vservers"
+echo "Updating $BUILD"
+cd $BUILD
+git pull
+cd -
+
# compute all vars from args
[ -z "$DISTRO" ] && DISTRO="$DEFAULT_DISTRO"
[ -z "$MEMORY" ] && MEMORY="$DEFAULT_MEMORY"