Skip to content

Instantly share code, notes, and snippets.

@ph0llux
Created December 28, 2020 21:28
Show Gist options
  • Save ph0llux/96180cf2698a748d780c6cedfc67a715 to your computer and use it in GitHub Desktop.
Save ph0llux/96180cf2698a748d780c6cedfc67a715 to your computer and use it in GitHub Desktop.
#!/bin/bash
if [ -e /etc/portage/make.conf ]; then
. /etc/portage/make.conf
if [ ! -d $PORTDIR/metadata/md5-cache -o -d $PORTDIR/.git ]; then
echo "updating metadata cache ..."
egencache --repo=gentoo --update
fi
fi
/usr/bin/eix-update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment