bugfix: use -gt when comparing int values

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
remotes/origin/feature_files_export
Steven Armstrong 14 years ago
parent 9d6a00af38
commit 648f57173c
  1. 2
      conf/type/__partition_msdos_apply/files/lib.sh

@ -52,7 +52,7 @@ create_partition() {
first_minor="${minor}\n"
type_minor="${minor}\n"
primary_extended="l\n"
[ "$primary_count" > "3" ] && primary_extended=""
[ "$primary_count" -gt "3" ] && primary_extended=""
fi
[ -n "${size}" ] && size="+${size}M"
fdisk_command ${device} "n\n${primary_extended}${first_minor}\n${size}\nt\n${type_minor}${type}\n"

Loading…
Cancel
Save