Authored by jimi.ji

Update docker.sh

1 #!/bin/bash 1 #!/bin/bash
  2 +wordir=$2/yoho-ops/app-log-query
  3 +cd $wordir
2 rm -rf yoho-blk-wap.tar.gz 4 rm -rf yoho-blk-wap.tar.gz
3 yarn 5 yarn
4 if [[ $1 == "TEST1" ]] || [[ $1 == "TEST2" ]] || [[ $1 == "TEST3" ]] 6 if [[ $1 == "TEST1" ]] || [[ $1 == "TEST2" ]] || [[ $1 == "TEST3" ]]
5 then 7 then
6 yarn build 8 yarn build
7 fi 9 fi
8 -cd ..  
9 -tar -czvf yoho-blk-wap.tar.gz ./  
10 -mv yoho-blk-wap.tar.gz yoho-blk-wap/ 10 +tar -czvf yoho-blk-wap.tar.gz *