Skip to content

Commit c526f25

Browse files
committed
format absolute path
1 parent 310f8cd commit c526f25

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lua/telescope-fzf-native/download_library.lua

+7-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,13 @@ local download = function(options)
107107
--
108108
-- Ensure the Build directory exists
109109
--
110-
spawn({ 'sh', '-c', '"mkdir ./build"' })
110+
-- using format, becase we need to run the command in a subshell on windows.
111+
--
112+
spawn({
113+
'sh',
114+
'-c',
115+
string.format("' mkdir %s'", path_join({ plugin_path, 'build' }))
116+
})
111117

112118
--
113119
-- Curl the download

0 commit comments

Comments
 (0)