forked from ungleich-public/cdist
bugfix: use -gt when comparing int values
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
parent
9d6a00af38
commit
648f57173c
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue