diff --git a/xCAT-client/bin/pping b/xCAT-client/bin/pping index a2cec0d07..e75c43692 100755 --- a/xCAT-client/bin/pping +++ b/xCAT-client/bin/pping @@ -12,9 +12,7 @@ use lib "$::XCATROOT/lib/perl"; use IO::Socket::SSL; use XML::Simple; -if ($^O =~ /^linux/i) { - $XML::Simple::PREFERRED_PARSER='XML::Parser'; -} +$XML::Simple::PREFERRED_PARSER='XML::Parser'; use Data::Dumper; use IO::Handle; use IO::Select; diff --git a/xCAT-client/bin/ppping b/xCAT-client/bin/ppping index 1aaf5d290..1a3d56ea6 100755 --- a/xCAT-client/bin/ppping +++ b/xCAT-client/bin/ppping @@ -12,9 +12,7 @@ use lib "$::XCATROOT/lib/perl"; use IO::Socket::SSL; use XML::Simple; -if ($^O =~ /^linux/i) { - $XML::Simple::PREFERRED_PARSER='XML::Parser'; -} +$XML::Simple::PREFERRED_PARSER='XML::Parser'; use Data::Dumper; use IO::Handle; use IO::Select; diff --git a/xCAT-client/bin/prsync b/xCAT-client/bin/prsync index 931c3dd18..dd5f2c2fb 100755 --- a/xCAT-client/bin/prsync +++ b/xCAT-client/bin/prsync @@ -7,9 +7,7 @@ BEGIN use lib "$::XCATROOT/lib/perl"; use IO::Socket::SSL; use XML::Simple; -if ($^O =~ /^linux/i) { - $XML::Simple::PREFERRED_PARSER='XML::Parser'; -} +$XML::Simple::PREFERRED_PARSER='XML::Parser'; use Data::Dumper; use IO::Handle; use IO::Select; diff --git a/xCAT-client/bin/pscp b/xCAT-client/bin/pscp index 8854e17b5..c572d4c34 100755 --- a/xCAT-client/bin/pscp +++ b/xCAT-client/bin/pscp @@ -7,9 +7,7 @@ BEGIN use lib "$::XCATROOT/lib/perl"; use IO::Socket::SSL; use XML::Simple; -if ($^O =~ /^linux/i) { - $XML::Simple::PREFERRED_PARSER='XML::Parser'; -} +$XML::Simple::PREFERRED_PARSER='XML::Parser'; use Data::Dumper; use IO::Handle; use IO::Select; diff --git a/xCAT-client/bin/psh b/xCAT-client/bin/psh index ff3e903e4..46b533626 100755 --- a/xCAT-client/bin/psh +++ b/xCAT-client/bin/psh @@ -8,9 +8,7 @@ BEGIN use lib "$::XCATROOT/lib/perl"; use IO::Socket::SSL; use XML::Simple; -if ($^O =~ /^linux/i) { - $XML::Simple::PREFERRED_PARSER='XML::Parser'; -} +$XML::Simple::PREFERRED_PARSER='XML::Parser'; use Data::Dumper; use IO::Handle; use IO::Select;