summaryrefslogtreecommitdiff
path: root/win32/rmdirs.bat
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-01-22 00:14:40 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-01-22 00:14:40 +0000
commitc73f2d28b41a532a71b9b5000d0d59a4c6f49a91 (patch)
treef68935834c524b116972d03f334f3d7f5d7a1dac /win32/rmdirs.bat
parentaee73bd610e54777815a848e2797b6998ea23624 (diff)
rmdirs.bat: remove last "."
* win32/rmdirs.bat: remove last "." since rmdir fails to remove it. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49373 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32/rmdirs.bat')
-rwxr-xr-xwin32/rmdirs.bat1
1 files changed, 1 insertions, 0 deletions
diff --git a/win32/rmdirs.bat b/win32/rmdirs.bat
index 829e93d..308b648 100755
--- a/win32/rmdirs.bat
+++ b/win32/rmdirs.bat
@@ -7,6 +7,7 @@ if "%1" == "" goto :end
shift
set dir=%dir:/=\%
:rmdirs
+ if /%dir:~-2%/ == /\./ set dir=%dir:~0,-2%
if not exist "%dir%\." goto :begin
if "%dir%" == "." goto :begin
if "%dir%" == ".." goto :begin