diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2001-03-23 09:23:32 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2001-03-23 09:23:32 +0000 |
commit | 9ad54d99a0d3966fd353377e57f76b784c143198 (patch) | |
tree | d67349f8eb795632577d9ab9052403cfcd4b08ac /perl-install/common.pm | |
parent | 6ad698273ed4442c3f496167919f62aeafdd62fe (diff) | |
download | drakx-backup-do-not-use-9ad54d99a0d3966fd353377e57f76b784c143198.tar drakx-backup-do-not-use-9ad54d99a0d3966fd353377e57f76b784c143198.tar.gz drakx-backup-do-not-use-9ad54d99a0d3966fd353377e57f76b784c143198.tar.bz2 drakx-backup-do-not-use-9ad54d99a0d3966fd353377e57f76b784c143198.tar.xz drakx-backup-do-not-use-9ad54d99a0d3966fd353377e57f76b784c143198.zip |
(getVarsFromSh): take care of comments
Diffstat (limited to 'perl-install/common.pm')
-rw-r--r-- | perl-install/common.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/perl-install/common.pm b/perl-install/common.pm index d680311b7..4c75bd91e 100644 --- a/perl-install/common.pm +++ b/perl-install/common.pm @@ -428,6 +428,7 @@ sub getVarsFromSh($) { local *F; open F, $_[0] or return; local $_; while (<F>) { + s/#.*//; # remove comments my ($v, $val, $val2) = /^\s* # leading space (\w+) = # variable |