]> git.openfabrics.org - ~vlad/build.git/commitdiff
build.pl: Fix warning
authorVladimir Sokolovsky <vlad@mellanox.com>
Thu, 16 Aug 2012 09:06:53 +0000 (12:06 +0300)
committerVladimir Sokolovsky <vlad@mellanox.com>
Thu, 16 Aug 2012 09:06:53 +0000 (12:06 +0300)
"my" variable $cmd masks earlier declaration in same scope at build.pl line 266.

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
build.pl

index f806ff970480c6e4b0cc8fbe80a76a2789178078..f98a46f1d7076cccc94a971d1fd4ec877855ffb4 100755 (executable)
--- a/build.pl
+++ b/build.pl
@@ -263,7 +263,7 @@ sub get_from_git
                mkpath $tmpdir . '/' . "compat";
                chdir $tmpdir . '/' . "compat";
 
-               my $cmd = "$GIT clone -s --bare";
+               $cmd = "$GIT clone -s --bare";
 
                if ($packages{$name}{'git_compat_reference_dir'}) {
                        $cmd .= " --reference $packages{$name}{'git_compat_reference_dir'}";