diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2013-09-09 10:39:10 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2013-09-09 10:39:10 -0300 |
commit | 5e1bc7d01b0cad40f718d850faf3520afd8644a8 (patch) | |
tree | 0df3f4d7e831f2aab8b9028b186f48cb43f9c0f7 | |
parent | 186db3f604b78055c627db013b2152430c0b437b (diff) | |
download | luarocks-5e1bc7d01b0cad40f718d850faf3520afd8644a8.tar.gz luarocks-5e1bc7d01b0cad40f718d850faf3520afd8644a8.tar.bz2 luarocks-5e1bc7d01b0cad40f718d850faf3520afd8644a8.zip |
Since we're using our own mkdir, use mkdir -p to create subdirectories.
Should suffice for #140 but needs testing.
-rw-r--r-- | src/luarocks/fs/win32/tools.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/luarocks/fs/win32/tools.lua b/src/luarocks/fs/win32/tools.lua index 6960ab35..7bb69d9e 100644 --- a/src/luarocks/fs/win32/tools.lua +++ b/src/luarocks/fs/win32/tools.lua | |||
@@ -107,7 +107,7 @@ end | |||
107 | -- @return boolean: true on success, false on failure. | 107 | -- @return boolean: true on success, false on failure. |
108 | function make_dir(directory) | 108 | function make_dir(directory) |
109 | assert(directory) | 109 | assert(directory) |
110 | fs.execute(fs.quiet(vars.MKDIR.." "..fs.Q(directory))) | 110 | fs.execute(fs.quiet(vars.MKDIR.." -p "..fs.Q(directory))) |
111 | if not fs.is_dir(directory) then | 111 | if not fs.is_dir(directory) then |
112 | return false, "failed making directory "..directory | 112 | return false, "failed making directory "..directory |
113 | end | 113 | end |