summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/MDK/Common/System.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/MDK/Common/System.pm b/lib/MDK/Common/System.pm
index 419a8d4..05003bb 100644
--- a/lib/MDK/Common/System.pm
+++ b/lib/MDK/Common/System.pm
@@ -371,7 +371,7 @@ sub setVarsInSh {
sub quoteForSh {
my ($val) = @_;
if ($val =~ /["`\$]/) {
- $val =~ s/(')/\\$1/g;
+ $val =~ s/(')/$1\\$1$1/g;
$val = qq('$val');
} elsif ($val =~ /[\(\)'|\s\\;<>&#\[\]~{}*?]/) {
$val = qq("$val");