From 9f049dcb18a6710560f8ce26ebde14e4788cf878 Mon Sep 17 00:00:00 2001 From: hide_d Date: Fri, 26 Nov 2021 19:05:59 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20branch=20=EA=B0=80=EC=A0=B8=EC=98=A4?= =?UTF-8?q?=EB=8A=94=20=ED=91=9C=EA=B8=B0=EB=B2=95=20=EB=8B=A4=EC=8B=9C=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/VersionGitDynamic.php | 2 +- j_updateServer.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hwe/sammo/VersionGitDynamic.php b/hwe/sammo/VersionGitDynamic.php index 6ce77a28..bd8642a4 100644 --- a/hwe/sammo/VersionGitDynamic.php +++ b/hwe/sammo/VersionGitDynamic.php @@ -18,7 +18,7 @@ class VersionGitDynamic exec($command, $output); if (is_array($output)) { if (count($output)) { - $output = $output[1]; + $output = Util::array_last($output); $output = trim($output, " \t\n\r\0\x0b*"); $output = explode('/', $output); $versionTokens[] = Util::array_last($output); diff --git a/j_updateServer.php b/j_updateServer.php index 7f5b5484..3fd1585a 100644 --- a/j_updateServer.php +++ b/j_updateServer.php @@ -28,7 +28,7 @@ function getVersion($target = null) exec($command, $output); if (is_array($output)) { if (count($output)) { - $output = $output[1]; + $output = Util::array_last($output); $output = trim($output, " \t\n\r\0\x0b*"); $output = explode('/', $output); $versionTokens[] = Util::array_last($output);