From 06e791e1d76623d74291abbdee56f8dfade69659 Mon Sep 17 00:00:00 2001 From: dearblue Date: Sat, 17 Feb 2024 11:14:57 +0900 Subject: [PATCH] Fix `MRUBY_PACKAGE_DIR` in `mruby-config.bat` Previously, the correct directory could not be obtained in some environments. Therefore, changed the method to leave an element indicating the parent directory. fix #6156 --- mrbgems/mruby-bin-config/mruby-config.bat | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/mrbgems/mruby-bin-config/mruby-config.bat b/mrbgems/mruby-bin-config/mruby-config.bat index fa7ad2a63..9308ccdbf 100644 --- a/mrbgems/mruby-bin-config/mruby-config.bat +++ b/mrbgems/mruby-bin-config/mruby-config.bat @@ -1,16 +1,6 @@ @echo off -call :init "%~dp0." -goto top - -:init -rem call init2 for treatments last directory separator -call :init2 "%~dp1." -goto :eof - -:init2 -set MRUBY_PACKAGE_DIR=%~f1 -goto :eof +set MRUBY_PACKAGE_DIR=%~dp0.. :top shift