#!/bin/bash PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin export PATH syncip=china #web port=/app/ syncname=hookssync token=sdddddddfsdfeewfwef #echo color_text Color_Text() { echo -e " \e[0;$2m$1\e[0m" } Echo_Red() { echo $(Color_Text "$1" "31") } Echo_Green() { echo $(Color_Text "$1" "32") } Echo_Green 'the code is sync... please wait...' Echo_Green '---------------------------sync------------------------------' echo '' echo '' echo '' echo '' curl -s http://$syncip:$port/$syncname/$token echo '' Echo_Green '---------------------------sync------------------------------' Echo_Green 'Finsh.....' ```