summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/vyatta-load-user-key.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/vyatta-load-user-key.pl b/scripts/vyatta-load-user-key.pl
index 9b84ab2a..32af1af2 100755
--- a/scripts/vyatta-load-user-key.pl
+++ b/scripts/vyatta-load-user-key.pl
@@ -69,7 +69,7 @@ sub geturl {
$cmd .= " $url";
open (my $curl, "$cmd |" )
- or die "$cmd command failed: $!\n";
+ or die "$cmd command failed: $!";
return $curl;
}
@@ -90,8 +90,8 @@ die "User $user does not exist in current configuration\n"
my $in;
if ( $source =~ m#(^[^/]\w+)://# ) {
$in = geturl ($1, $source);
-} else {
- open(my $in, '<', $source)
+} else {
+ open($in, '<', $source)
or die "Cannot open file $source: $!\n";
}