提交 d3a88048 编写于 作者: A Aaron Xiao 提交者: Jiangtao Hu

Scripts: Record bags to each task dir.

上级 feb1e405
......@@ -43,9 +43,9 @@ function start() {
fi
# Create and enter into bag dir.
if [ ! -e "${BAG_DIR}" ]; then
mkdir -p "${BAG_DIR}"
fi
TASK_ID=$(date +%Y-%m-%d-%H-%M-%S)
BAG_DIR="${BAG_DIR}/${TASK_ID}"
mkdir -p "${BAG_DIR}"
cd "${BAG_DIR}"
echo "Recording bag to: $(pwd)"
......
......@@ -43,9 +43,9 @@ function start() {
fi
# Create and enter into bag dir.
if [ ! -e "${BAG_DIR}" ]; then
mkdir -p "${BAG_DIR}"
fi
TASK_ID=$(date +%Y-%m-%d-%H-%M-%S)
BAG_DIR="${BAG_DIR}/${TASK_ID}"
mkdir -p "${BAG_DIR}"
cd "${BAG_DIR}"
echo "Recording bag to: $(pwd)"
......
......@@ -43,9 +43,9 @@ function start() {
fi
# Create and enter into bag dir.
if [ ! -e "${BAG_DIR}" ]; then
mkdir -p "${BAG_DIR}"
fi
TASK_ID=$(date +%Y-%m-%d-%H-%M-%S)
BAG_DIR="${BAG_DIR}/${TASK_ID}"
mkdir -p "${BAG_DIR}"
cd "${BAG_DIR}"
echo "Recording bag to: $(pwd)"
......
......@@ -43,9 +43,9 @@ function start() {
fi
# Create and enter into bag dir.
if [ ! -e "${BAG_DIR}" ]; then
mkdir -p "${BAG_DIR}"
fi
TASK_ID=$(date +%Y-%m-%d-%H-%M-%S)
BAG_DIR="${BAG_DIR}/${TASK_ID}"
mkdir -p "${BAG_DIR}"
cd "${BAG_DIR}"
echo "Recording bag to: $(pwd)"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册