Skip to content

Commit 3144d3f

Browse files
committed
fix: do not call xargs rm in redirects plugin if there are no links
1 parent 48fa928 commit 3144d3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_plugins/redirects.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def latest_version_in(dir)
1313
end
1414

1515
Jekyll::Hooks.register :site, :after_reset do |site|
16-
system "find #{Shellwords.escape(site.dest)} -type l | xargs rm"
16+
system "find #{Shellwords.escape(site.dest)} -type l | xargs -r rm"
1717
end
1818

1919
Jekyll::Hooks.register :site, :post_write do |site|

0 commit comments

Comments
 (0)