hot.sh 425 B

1234567891011121314151617181920
  1. #!/bin/bash
  2. #用于热更配置表使用
  3. path='/data/server/'
  4. count=1
  5. for i in $(find . -maxdepth 1 -type d -name "bin*" -exec basename {} \;)
  6. do
  7. cd "$path$i/script"
  8. echo "enter ${path}${i}/script"
  9. if test -e "${path}${i}/script/Main.lua"
  10. then
  11. count=$count+1
  12. touch Main.lua
  13. else
  14. echo "Main.lua not exist"
  15. fi
  16. done
  17. echo "hotfix serverList finish , count is ${count}"