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.
|
|
#!/bin/bash
dispatch_branch="release" #dispatch_version="v1.1.1" dispatch_version=$1
dir_from="/mnt/d/mt4-multi/ic_mql4_source_01"
dirs_to=( "/mnt/d/mt4-multi/ic_mql4_source_02" "/mnt/d/mt4-multi/exness_mql4_source_00" )
# 判断参数个数是否小于 1 if [ "$#" -lt 1 ]; then echo "usage: ${0} version" echo " ${0} v1.1.0" echo " ${0} v1.2.0" echo " ..." exit 1 fi
echo ========================================= echo md5sum release file dispatch_exec="${dir_from}/Experts/smt_${dispatch_branch}_${dispatch_version}.ex4" md5sum ${dispatch_exec}
echo ========================================= for directory in ${dirs_to[@]}; do echo "-----------${directory}---------------" echo " before..." ls -l ${directory}/Experts
cp ${dispatch_exec} ${directory}/Experts #find ${directory}/ -name "*.log"
echo "-------" echo " after..." ls -l ${directory}/Experts echo "--------------------------" done
|