diff options
Diffstat (limited to 'perl-install/network/tools.pm')
-rw-r--r-- | perl-install/network/tools.pm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/perl-install/network/tools.pm b/perl-install/network/tools.pm index 1d96fc839..b0d9d1a9b 100644 --- a/perl-install/network/tools.pm +++ b/perl-install/network/tools.pm @@ -36,8 +36,7 @@ sub write_secret_backend { sub unquotify { my ($word) = @_; - my ($a, $b, $c) = $$word =~ /"(.*)"|'(.*)'|(.*)/; - $$word = $a || $b || $c; + $$word =~ s/^(['"]?)(.*)\1$/$2/; } sub read_secret_backend { |