Update update.sh
This commit is contained in:
parent
363853d75c
commit
337899a3b4
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue