diff --git a/xCAT-client-2.0/bin/pscp b/xCAT-client-2.0/bin/pscp index e62d2b0c1..132dcaa7e 100755 --- a/xCAT-client-2.0/bin/pscp +++ b/xCAT-client-2.0/bin/pscp @@ -7,7 +7,9 @@ BEGIN use lib "$::XCATROOT/lib/perl"; use IO::Socket::SSL; use XML::Simple; -$XML::Simple::PREFERRED_PARSER='XML::Parser'; +if ($^O =~ /^linux/i) { + $XML::Simple::PREFERRED_PARSER='XML::Parser'; +} use Data::Dumper; use IO::Handle; use IO::Select;