|
|
@@ -132,7 +132,7 @@ update() {
|
|
|
cd tmp
|
|
|
REPONAME=OGP-Agent-Linux
|
|
|
REVISION=`git ls-remote --heads https://github.com/OpenGamePanel/${REPONAME}.git | grep -owE "^[^?\s]+"`
|
|
|
- curl -Os https://raw.githubusercontent.com/OpenGamePanel/${REPONAME}/${REVISION}/OGP/ogp_agent_run
|
|
|
+ curl -Os https://raw.githubusercontent.com/OpenGamePanel/${REPONAME}/${REVISION}/ogp_agent_run
|
|
|
diff ./ogp_agent_run $AGENTDIR/ogp_agent_run &>/dev/null
|
|
|
if test $? -ne 0; then
|
|
|
cp -f ./ogp_agent_run $AGENTDIR/ogp_agent_run &> /dev/null
|
|
|
@@ -262,4 +262,4 @@ init $*
|
|
|
run
|
|
|
|
|
|
# Quit normally
|
|
|
-quit 0
|
|
|
+quit 0
|