Skip to content

Commit 5a54b2b

Browse files
author
Sumanth Kumar Mora
committed
Change current directory to batch file location
1 parent 75ab962 commit 5a54b2b

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

installers/go-agent/release/start-agent.bat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ REM See the License for the specific language governing permissions and
1414
REM limitations under the License.
1515
REM *************************GO-LICENSE-END**********************************
1616

17+
cd /d "%~dp0"
18+
1719
IF "%DAEMON%"=="N" (
1820
START "go agent - %CD%" /WAIT agent.cmd
1921
) ELSE (

installers/go-agent/release/stop-agent.bat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,7 @@ REM See the License for the specific language governing permissions and
1414
REM limitations under the License.
1515
REM *************************GO-LICENSE-END**********************************
1616

17+
cd /d "%~dp0"
18+
1719
FOR /F "tokens=2" %%I in ('TASKLIST /NH /FI "WINDOWTITLE eq go agent - %CD% - agent.cmd"' ) DO TASKKILL /F /T /PID %%I
1820
if exist .agent-bootstrapper.running del /Q .agent-bootstrapper.running

0 commit comments

Comments
 (0)