PRO_DIR=`pwd` CONFIG_IVSysMan="IVSysMan_vv7-6511.xml" check_result=`whereis patchelf | awk '{print $2}'` if [ ! $check_result ];then echo -e "\e[31m no found patchelf, Plz install patchelf first\e[0m" exit 1 fi app_name=( decition_brain ) for x in ${app_name[@]} do echo "deploy $x" cp ./bin/${x} ./ ./deploy.sh $x if [ "$?" == 1 ];then exit 1 fi rm ${x} done echo "" echo "***************" echo "*** done! ***" echo "***************"