diff --git a/bin/patch b/bin/patch index 10f61a3fe..ccf932df5 100755 --- a/bin/patch +++ b/bin/patch @@ -89,11 +89,11 @@ if (!-d "$path/$module") { # Download command or cat patch file my $cmd; if ($patch =~ /^https?:\/\//) { - $cmd = "curl -s $patch"; + $cmd = "curl -s @{[quotemeta($patch)]}"; chdir "$path/$module"; } else { - $cmd = "cat $patch"; + $cmd = "cat @{[quotemeta($patch)]}"; } # Apply patch using Git