summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-08-29 14:52:45 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-08-29 14:52:45 +0000
commiteff67faa909b3b52902c49a2b29cb4b153bf5cad (patch)
tree6a2887da4f747e7ab9a04eda24ec1d21461499f8 /perl-install/standalone
parentd2bd722eb4a8beb960fa37311d36b66f59397828 (diff)
downloaddrakx-eff67faa909b3b52902c49a2b29cb4b153bf5cad.tar
drakx-eff67faa909b3b52902c49a2b29cb4b153bf5cad.tar.gz
drakx-eff67faa909b3b52902c49a2b29cb4b153bf5cad.tar.bz2
drakx-eff67faa909b3b52902c49a2b29cb4b153bf5cad.tar.xz
drakx-eff67faa909b3b52902c49a2b29cb4b153bf5cad.zip
fix check_hard_drives
Diffstat (limited to 'perl-install/standalone')
-rwxr-xr-xperl-install/standalone/drakupdate_fstab3
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/standalone/drakupdate_fstab b/perl-install/standalone/drakupdate_fstab
index 0d5f3c4ff..dbb566322 100755
--- a/perl-install/standalone/drakupdate_fstab
+++ b/perl-install/standalone/drakupdate_fstab
@@ -44,7 +44,8 @@ sub check_hard_drives {
#- do not do anything if there are many partitions
#- otherwise we may add main extended partitions
if ($name =~ s|/part\d+$||) {
- grep { /part/ } all($name) <= 1;
+ my @parts = grep { /part/ } all($name);
+ @parts <= 1;
} else {
1;
}