Fix to escape params

This commit is contained in:
Ilia Ross
2024-06-29 23:29:55 +03:00
parent d89f6411b6
commit 94b7fdf0ec

View File

@@ -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