From 273a820ecac36ec44b4bd7d60a6f2b631db556c5 Mon Sep 17 00:00:00 2001 From: xq114 <1140735506@qq.com> Date: Fri, 30 Apr 2021 00:27:36 +0800 Subject: handle xmake root including space --- scripts/xrepo.bat | 2 +- scripts/xrepo.ps1 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/xrepo.bat b/scripts/xrepo.bat index c59fd53d9..c1dde03fe 100755 --- a/scripts/xrepo.bat +++ b/scripts/xrepo.bat @@ -1,6 +1,6 @@ @echo off -@set "XMAKE_EXE=%~dp0xmake.exe" +@set "XMAKE_EXE=xmake" @if [%1]==[env] ( if [%2]==[quit] ( if defined XMAKE_PROMPT_BACKUP ( diff --git a/scripts/xrepo.ps1 b/scripts/xrepo.ps1 index 84bb4f000..620f67cc6 100644 --- a/scripts/xrepo.ps1 +++ b/scripts/xrepo.ps1 @@ -4,7 +4,7 @@ $Env:XMAKE_EXE = Join-Path $BASE_DIR xmake.exe if ($Args.Count -eq 0) { - # No args, just call the underlying conda executable. + # No args, just call the underlying xmake executable. & $Env:XMAKE_EXE lua private.xrepo; } else { $Command = $Args[0]; -- cgit v1.3.1