pentoo-system: update repo before running pentoo-updater

This commit is contained in:
blshkv 2019-05-15 19:34:08 +08:00
parent 69e71dd797
commit c459a9db7b
No known key found for this signature in database
GPG key ID: 273E3E90D1A6294F
2 changed files with 1 additions and 0 deletions

View file

@ -1,5 +1,6 @@
#!/bin/sh
for i in /var/db/repos /var/lib/layman; do
emaint sync -r pentoo
if [ -x "${i}"/pentoo/scripts/pentoo-updater.sh ]; then
exec "${i}"/pentoo/scripts/pentoo-updater.sh
exit $?