summaryrefslogtreecommitdiffstats
path: root/perl-install/network
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/network')
-rw-r--r--perl-install/network/tools.pm3
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 {