Skip to content

Commit

Permalink
refine window batch script initializing
Browse files Browse the repository at this point in the history
  • Loading branch information
skywind3000 committed May 19, 2023
1 parent 4d89b55 commit 71bae7f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 1 addition & 3 deletions z.cmd
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
@echo off
setlocal EnableDelayedExpansion

set "HomeDir=%~dp0"
set "PathSave=%PATH%"
set "LuaExe=lua"
set "LuaScript=%HomeDir%z.lua"
set "LuaScript=%~dp0z.lua"
set "MatchType=-n"
set "StrictSub=-n"
set "RunMode=-n"
Expand Down
2 changes: 0 additions & 2 deletions z.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2721,8 +2721,6 @@ function z_windows_init(opts)
else
print('@echo off')
print('setlocal EnableDelayedExpansion')
print('set "HomeDir=%~dp0"') -- So that Lua can find the z.lua file.
print('set "PathSave=%PATH%"')
print('set "LuaExe=' .. os.interpreter() .. '"')
print('set "LuaScript=' .. os.scriptname() .. '"')
print(script_init_cmd)
Expand Down

0 comments on commit 71bae7f

Please sign in to comment.