mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-02 15:16:46 +00:00
DEVTOOLS: COMPANION: Escape more characters for shell commands
This commit is contained in:
parent
149681cfad
commit
5288422e26
@ -193,7 +193,7 @@ sub processIso($) {
|
||||
$prevlen = length "$dir$decfname";
|
||||
flush STDOUT;
|
||||
|
||||
$fname =~ s/\*/\\\*/g; # Files cound have stars in them, escape, so shell is happy
|
||||
$fname =~ s/([*+\[\]\|<>&])/\\$1/g; # Files cound have special symbols in them, escape, so shell is happy
|
||||
|
||||
if ($res != 0) {
|
||||
system1("hcopy -m -- \"$mdir$fname\" \"$outPath$dir$decfname\"") == 0 or die "Can't execute hcopy";
|
||||
|
Loading…
Reference in New Issue
Block a user