diff options
author | Sam James <sam@gentoo.org> | 2022-11-21 07:37:00 +0000 |
---|---|---|
committer | Matt Turner <mattst88@gentoo.org> | 2022-11-22 16:19:03 -0500 |
commit | 2324a630a7c650187edd0ce7b1343a6f3e40423d (patch) | |
tree | 0a7688b36503a4c4fe3d52bc9d3bd545e2f5227b /targets | |
parent | catalyst: Use correct arch setting for setarch testing (diff) | |
download | catalyst-2324a630a7c650187edd0ce7b1343a6f3e40423d.tar.gz catalyst-2324a630a7c650187edd0ce7b1343a6f3e40423d.tar.bz2 catalyst-2324a630a7c650187edd0ce7b1343a6f3e40423d.zip |
targets: fix comparison operator
'<' and '>' work lexicographically in bash.
Signed-off-by: Sam James <sam@gentoo.org>
Signed-off-by: Matt Turner <mattst88@gentoo.org>
Diffstat (limited to 'targets')
-rwxr-xr-x | targets/support/pre-kmerge.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/targets/support/pre-kmerge.sh b/targets/support/pre-kmerge.sh index 0dfc835e..ed825f5f 100755 --- a/targets/support/pre-kmerge.sh +++ b/targets/support/pre-kmerge.sh @@ -18,8 +18,8 @@ if [[ ${clst_hostarch} == hppa ]]; then ;; esac done - [[ $num32 > 1 ]] && die "Only one 32-bit kernel can be configured" - [[ $num64 > 1 ]] && die "Only one 64-bit kernel can be configured" + [[ $num32 -gt 1 ]] && die "Only one 32-bit kernel can be configured" + [[ $num64 -gt 1 ]] && die "Only one 64-bit kernel can be configured" fi run_merge --oneshot sys-kernel/genkernel |