From 3db62d378a4a1c32afd2a81dfa7f02e3f371b134 Mon Sep 17 00:00:00 2001 From: lissav Date: Wed, 26 Aug 2009 14:33:44 +0000 Subject: [PATCH] allow comments in xdcp rsync input file git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4044 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/DSHCLI.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/perl-xCAT/xCAT/DSHCLI.pm b/perl-xCAT/xCAT/DSHCLI.pm index 65897f540..528c70927 100644 --- a/perl-xCAT/xCAT/DSHCLI.pm +++ b/perl-xCAT/xCAT/DSHCLI.pm @@ -4393,8 +4393,13 @@ sub parse_rsync_input_file_on_MN while (my $line = ) { chomp $line; + if ($line =~ /^#/) # skip commments + { + next; + } if ($line =~ /(.+) -> (.+)/) { + $process_line = 1; my $src_file = $1; my $dest_file = $2;