panda
12 months ago
1 changed files with 42 additions and 0 deletions
@ -0,0 +1,42 @@ |
|||
#!/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 |
|||
|
Loading…
Reference in new issue