summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Portage.pm')
-rw-r--r--Portage.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/Portage.pm b/Portage.pm
index e9edaab..d3bed35 100644
--- a/Portage.pm
+++ b/Portage.pm
@@ -999,8 +999,8 @@ sub _read_sh {
}
}
};
- defined($@) and length($@) and
- die "Parse error in $fname\n - Error: \"$@\"\n";
+ defined($@) and length($@) and chomp $@
+ and die "Parse error in $fname\n - Error: \"$@\"\n";
}
_merge_env(\%env);
return %env if wantarray;