1
0
Fork 0
mirror of synced 2024-11-22 10:05:37 -05:00

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

View file

@ -42,6 +42,7 @@ if [ -x /usr/bin/locate ]; then
echo "Updating mlocate index.." echo "Updating mlocate index.."
sudo updatedb sudo updatedb
fi fi
echo ""
# Update fish completions # Update fish completions
if [ -x /usr/bin/fish ]; then 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 sudo -u \#$SUDO_UID fish -c fish_update_completions
fi fi
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 ""
echo "System updated! 🐧" echo "System updated! 🐧"