aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-11-21 07:37:00 +0000
committerMatt Turner <mattst88@gentoo.org>2022-11-22 16:19:03 -0500
commit2324a630a7c650187edd0ce7b1343a6f3e40423d (patch)
tree0a7688b36503a4c4fe3d52bc9d3bd545e2f5227b /targets
parentcatalyst: Use correct arch setting for setarch testing (diff)
downloadcatalyst-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-xtargets/support/pre-kmerge.sh4
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