gentooup.sh: fix syntax error

This commit is contained in:
Tobias Klaus 2018-06-19 08:46:07 +02:00
parent d3b13acdcb
commit ec61cc2b95

View file

@ -121,7 +121,7 @@ echo Started at "$STARTDATE"
CURRENTKERNELVERSION="$(uname -r)"
emerge --no-replace gentoo-sources:"${CURRENTKERNELVERSION/"-gentoo"/}"
emerge -a "${PORTAGE_OPTIONS[@]}" --depclean
if [[ "$(grep -c gentoo-sources /var/lib/portage/world)" gt 2 ]] ; then
if [[ "$(grep -c gentoo-sources /var/lib/portage/world)" -gt 2 ]] ; then
echo too many kernelversion in world file!
grep gentoo-source /var/lib/portage/world
fi