From 45a3e5eda14985a3f5dc045f143522747747f8de Mon Sep 17 00:00:00 2001 From: Luke Bratch Date: Fri, 18 Apr 2025 13:11:54 +0200 Subject: Add etc-update. --- portage-update.sh | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'portage-update.sh') diff --git a/portage-update.sh b/portage-update.sh index 8983559..0330162 100755 --- a/portage-update.sh +++ b/portage-update.sh @@ -28,6 +28,8 @@ do ;; --skip-preserved-rebuild) export SKIP_PRESERVED_REBUILD="true" # In case we don't want to do an "emerge @preserved-rebuild" ;; + --skip-etc-update) export SKIP_ETC_UPDATE="true" # In case we don't want to do an "etc-update" + ;; --*) echo "bad argument '$1'" ; exit 1 ;; *) echo "unexpected argument '$1'" ; exit 1 @@ -104,6 +106,12 @@ echo 'rm -r '"$PORTAGE_TEMP" #rm -r "$PORTAGE_TEMP" || exit 1 echo "Would do rm -r $PORTAGE_TEMP here, do not have the balls yet due to rm -ring a variable" || exit 1 +# Run etc-update, unless skipped +if [ -z ${SKIP_ETC_UPDATE+x} ]; then + echo 'etc-update' + etc-update +fi + # Print disk space echo 'df -H' df -H || exit 1 -- cgit v1.2.3