Include micro plugin updates in update

This commit is contained in:
dr460nf1r3 2021-09-15 19:17:44 +02:00
parent 4ce76c7baf
commit ddae90df13
No known key found for this signature in database
GPG Key ID: BE75B9D9767036C2
1 changed files with 11 additions and 0 deletions

View File

@ -42,6 +42,7 @@ if [ -x /usr/bin/locate ]; then
echo "Updating mlocate index.."
sudo updatedb
fi
echo ""
# Update fish completions
if [ -x /usr/bin/fish ]; then
@ -51,6 +52,16 @@ if [ -x /usr/bin/fish ]; then
sudo -u \#$SUDO_UID fish -c fish_update_completions
fi
fi
echo ""
# Update micro plugins
if [ -x /usr/bin/micro ]; then
if [[ $EUID -ne 0 ]]; then
micro -plugin update
elif [ ! -z "$SUDO_UID" ]; then
sudo -u \#$SUDO_UID micro -plugin update
fi
fi
echo ""
echo "System updated! 🐧"