From 361ad1c8b78632db2628551e2e34143207adf415 Mon Sep 17 00:00:00 2001 From: Sam Al-Sapti Date: Thu, 12 Jan 2023 20:44:38 +0100 Subject: [PATCH] Update echoes in update.sh --- scripts/.local/bin/update.sh | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/scripts/.local/bin/update.sh b/scripts/.local/bin/update.sh index c2f9a70..c447ae0 100755 --- a/scripts/.local/bin/update.sh +++ b/scripts/.local/bin/update.sh @@ -2,20 +2,19 @@ [ "$(lsb_release -si)" = "Artix" ] && paru [ "$(lsb_release -si)" = "Fedora" ] && sudo dnf upgrade +echo command -v flatpak >/dev/null 2>&1 && - { echo; flatpak update; } + { flatpak update; echo; } command -v npm >/dev/null 2>&1 && - { echo; npm update --location="global"; } + { npm update --location="global"; echo; } command -v rustup >/dev/null 2>&1 && - { echo; rustup update; } + { rustup update; echo; } command -v nvim >/dev/null 2>&1 && - { echo; nvim --headless +PlugUpdate +PlugUpgrade +qa; echo; } -command -v docker >/dev/null 2>&1 && - { echo; [ "$(sudo docker images | wc -l)" -gt 1 ] && - sudo sh -c "docker images | - awk '(NR>1) && (\$2!~/none/) {print \$1\":\"\$2}' | - xargs -l docker pull"; } + { nvim --headless +PlugUpdate +PlugUpgrade +qa; echo; } +command -v docker >/dev/null 2>&1 && [ "$(sudo docker images | wc -l)" -gt 1 ] && + { sudo sh -c "docker images | + awk '(NR>1) && (\$2!~/none/) {print \$1\":\"\$2}' | + xargs -l docker pull"; echo; } -echo zsh -ic "antidote update && echo && git -C $(dirname -- "$(readlink -e "$0")") pull"