Update update.sh

This commit is contained in:
theanonymousexyz 2022-06-06 15:48:21 +02:00
parent 363853d75c
commit 337899a3b4
No known key found for this signature in database
GPG key ID: 35EE09F5481049BB

View file

@ -15,14 +15,20 @@ elif [ "$(uname -o)" = "GNU/Linux" ]; then
fi fi
fi fi
command -v flatpak >/dev/null 2>&1 && { echo; flatpak update; } || true command -v flatpak >/dev/null 2>&1 \
command -v npm >/dev/null 2>&1 && { echo; npm up -g; } || true && { echo; flatpak update; } || true
command -v nvim >/dev/null 2>&1 && { echo; nvim --headless +PlugUpdate +PlugUpgrade +qa; echo; } || true
command -v docker >/dev/null 2>&1 && { echo; [ "$(docker images | wc -l)" -gt 1 ] \ command -v npm >/dev/null 2>&1 \
&& docker images \ && { echo; npm up -g; } || true
command -v nvim >/dev/null 2>&1 \
&& { echo; nvim --headless +PlugUpdate +PlugUpgrade +qa; echo; } || true
command -v docker >/dev/null 2>&1 && [ "$(docker images | wc -l)" -gt 1 ] \
&& { echo; docker images \
| awk '(NR>1) && ($2!~/none/) {print $1":"$2}' \ | awk '(NR>1) && ($2!~/none/) {print $1":"$2}' \
| xargs -l docker pull; } || true | xargs -l docker pull; } || true
echo echo
zsh -ic "git -C $(dirname -- $(readlink -e $0)) pull && antidote update && fg &>/dev/null" zsh -ic "git -C $(dirname -- "$(readlink -e "$0")") pull && antidote update && fg &>/dev/null"