Changeset 944 for dasscm


Ignore:
Timestamp:
Feb 22, 2011, 7:42:38 PM (14 years ago)
Author:
joergs
Message:

bugfix: LANG=C for executing commands

File:
1 edited

Legend:

Unmodified
Added
Removed
  • dasscm/trunk/usr/bin/dasscm

    r934 r944  
    802802        # bash -c is used, to supress all output
    803803        # (otherwise there are problem with && commands)
    804         ( my $rc_test, my @result_test ) = run_command( "LANG=C bash -c " . $plugin_test);
     804        ( my $rc_test, my @result_test ) = run_command( 'LANG=C bash -c "' . $plugin_test . '"' );
    805805        if ( $rc_test != 0 ) {
    806806            if ($verbose) { print "skipped\n"; }
    807807        } else {
    808808            if ($verbose) { print "$config->{$plugin}\n"; }
    809             ( my $rc, my @result ) = run_command( $config->{$plugin} );
     809            ( my $rc, my @result ) = run_command( 'LANG=C bash -c "' . $config->{$plugin} . '"' );
    810810            if ( $rc != 0 ) {
    811811                warning("failed to run plugin $plugin");
Note: See TracChangeset for help on using the changeset viewer.