summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}