diff --git a/UnitCsvReceiverSmart.pl b/UnitCsvReceiverSmart.pl index 1979055..3a3f122 100644 --- a/UnitCsvReceiverSmart.pl +++ b/UnitCsvReceiverSmart.pl @@ -151,10 +151,10 @@ while ( my $line = $tail->GetLine() ) { setgid($gid); setuid($uid); $ENV{"HOME"} = 'home/' . $truser; - if ( $unittype = 'GFLOW' ) { + if ( $unittype eq 'GFLOW' ) { } - elsif { + else { exec( $scriptpath . "LoadCSVData.pl -f \"$dest\" -s \"$outpath/SQL/$filename" . "_"