|
|
@@ -0,0 +1,18 @@
|
|
|
+path='/data/server/'
|
|
|
+count=1
|
|
|
+for i in $(find . -maxdepth 1 -type d -name "bin*" -exec basename {} \;)
|
|
|
+do
|
|
|
+
|
|
|
+ cd "$path$i/script"
|
|
|
+ echo "enter ${path}${i}/script"
|
|
|
+ if test -e "${path}${i}/script/Main.lua"
|
|
|
+ then
|
|
|
+ count=$count+1
|
|
|
+ touch Main.lua
|
|
|
+ else
|
|
|
+ echo "Main.lua not exist"
|
|
|
+ fi
|
|
|
+
|
|
|
+done
|
|
|
+
|
|
|
+echo "hotfix serverList finish , count is ${count}"
|