Skip to content

Commit 3741b94

Browse files
authored
Escape shell paths
1 parent bc12aed commit 3741b94

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/tasks/build.rake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
TAILWIND_COMPILE_COMMAND = "#{Pathname.new(__dir__).to_s}/../../exe/tailwindcss -i #{Rails.root.join("app/assets/stylesheets/application.tailwind.css")} -o #{Rails.root.join("app/assets/builds/tailwind.css")} -c #{Rails.root.join("config/tailwind.config.js")}"
1+
require 'shellwords'
2+
TAILWIND_COMPILE_COMMAND = "#{Pathname.new(__dir__).to_s.shellescape}/../../exe/tailwindcss -i #{Rails.root.join("app/assets/stylesheets/application.tailwind.css").shellescape} -o #{Rails.root.join("app/assets/builds/tailwind.css").shellescape} -c #{Rails.root.join("config/tailwind.config.js").shellescape}"
23

34
namespace :tailwindcss do
45
desc "Build your Tailwind CSS"

0 commit comments

Comments
 (0)