!/bin/bash
cur_date="date +%Y%m%d
"
cur_time="date +%H%M%S
"
打包资源的路径
package_route=()
base_route='/xxx/'${cur_date}
lock=true
if {base_route}" ];then
mkdir {base_route}
mkdir {package_route[]}
do
cd loop/dist" ];then
echo "准备打包dist文件"
tar -zcf {loop#prs-}{base_route}/{cur_time}'xxx'.gz dist
echo "已生成打包文件"
fi
done
fi
exit 1