diff options
| author | ruki <[email protected]> | 2023-03-03 23:16:20 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-03-03 23:16:20 +0800 |
| commit | 3d05713324f5192728cf4f3131fc7295b3ef72a5 (patch) | |
| tree | 617d3c1055f0168a12f3f253c2ae7d68a89b2669 | |
| parent | 03e6e829efe43c2e78673ef2b2da86bbd7f797b4 (diff) | |
fix home
| m--------- | core/src/tbox/tbox | 0 | ||||
| -rw-r--r-- | xmake/actions/update/main.lua | 8 |
2 files changed, 4 insertions, 4 deletions
diff --git a/core/src/tbox/tbox b/core/src/tbox/tbox -Subproject 5639514131a4e814738b38664ecf070ad50b76a +Subproject 04cc154a906fd2670989bc1648c857a35a47671 diff --git a/xmake/actions/update/main.lua b/xmake/actions/update/main.lua index 938ca8cf4..adf5f6819 100644 --- a/xmake/actions/update/main.lua +++ b/xmake/actions/update/main.lua @@ -291,7 +291,7 @@ end -- initialize shells function _initialize_shell() - local target, command, profile_home + local target, command if is_host("windows") then local psshell = find_tool("pwsh") or find_tool("powershell") local outdata, errdata = try {function () return os.iorunv(psshell.program, {"-c", "Write-Output $PROFILE.CurrentUserAllHosts"}) end} @@ -310,7 +310,7 @@ function _initialize_shell() elseif shell:endswith("ksh") then target = "~/.kshrc" elseif shell:endswith("fish") then target = "~/.config/fish/config.fish" end - profile_home = path.absolute("~/.xmake/profile") + local profile_home = path.absolute("~/.xmake/profile") command = ("test -f \"%s\" && source \"%s\""):format(profile_home, profile_home) -- write home profile @@ -353,9 +353,9 @@ test -f "%s" && source "%s" -- trace if ok then cprint("${color.success}${text.success}") - if not is_host("windows") and profile_home then + if not is_host("windows") then print("Reload shell profile by running the following command now!") - cprint("${bright}source %s${clear}", profile_home) + cprint("${bright}source ~/.xmake/profile${clear}") end else cprint("${color.failure}${text.failure}") |
