Include micro plugin updates in update
This commit is contained in:
parent
4ce76c7baf
commit
ddae90df13
1 changed files with 11 additions and 0 deletions
|
@ -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! 🐧"
|
||||
|
|
Loading…
Reference in a new issue