Need to do some task after syncing with remote repos on Gentoo Linux? Check out postsync.d/repo.postsync.d, which is portage's built-in facility for running scripts after a sync!
Check out my YouTube channel for more Gentoo Linux videos: https://www.youtube.com/channel/UC8F_ci7-G_XBXvoRGQR-fMQ