Commit e9d31a17 authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

redirect stderr to /dev/null in GetPackage() to avoid output from ls.

parent f30c55e5
......@@ -467,9 +467,9 @@ sub GetPackage($$) {
PhaseFail("Must provide -p (packagedir) argument!")
if (!$packagedir);
my $pname = `ls $packagedir/$prefix-*.tbz`;
my $pname = `ls $packagedir/$prefix-*.tbz 2>/dev/null`;
if ($?) {
$pname = `ls $packagedir/$prefix-*.tgz`;
$pname = `ls $packagedir/$prefix-*.tgz 2>/dev/null`;
PhaseFail("Cannot find $prefix package in $packagedir!")
if ($?);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment