bugfix: use -gt when comparing int values

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
Steven Armstrong 2011-10-04 23:53:06 +02:00
parent 9d6a00af38
commit 648f57173c
1 changed files with 1 additions and 1 deletions

View File

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