summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorxq114 <[email protected]>2021-04-30 00:27:36 +0800
committerxq114 <[email protected]>2021-04-30 00:27:36 +0800
commit273a820ecac36ec44b4bd7d60a6f2b631db556c5 (patch)
treed346d1bdd48bc6a6a2f8062ca03a2a7824a7479a /scripts
parentb4e8f0d99a58a35477b199daf4c0da138f4a8951 (diff)
handle xmake root including space
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/xrepo.bat2
-rw-r--r--scripts/xrepo.ps12
2 files changed, 2 insertions, 2 deletions
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];