You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
934 B

10 months ago
  1. #!/bin/bash
  2. dispatch_branch="release"
  3. #dispatch_version="v1.1.1"
  4. dispatch_version=$1
  5. dir_from="/mnt/d/mt4-multi/ic_mql4_source_01"
  6. dirs_to=(
  7. "/mnt/d/mt4-multi/ic_mql4_source_02"
  8. "/mnt/d/mt4-multi/exness_mql4_source_00"
  9. )
  10. # 判断参数个数是否小于 1
  11. if [ "$#" -lt 1 ]; then
  12. echo "usage: ${0} version"
  13. echo " ${0} v1.1.0"
  14. echo " ${0} v1.2.0"
  15. echo " ..."
  16. exit 1
  17. fi
  18. echo =========================================
  19. echo md5sum release file
  20. dispatch_exec="${dir_from}/Experts/smt_${dispatch_branch}_${dispatch_version}.ex4"
  21. md5sum ${dispatch_exec}
  22. echo =========================================
  23. for directory in ${dirs_to[@]}; do
  24. echo "-----------${directory}---------------"
  25. echo " before..."
  26. ls -l ${directory}/Experts
  27. cp ${dispatch_exec} ${directory}/Experts
  28. #find ${directory}/ -name "*.log"
  29. echo "-------"
  30. echo " after..."
  31. ls -l ${directory}/Experts
  32. echo "--------------------------"
  33. done