Fix update.sh

This commit is contained in:
Sam A. 2023-04-06 17:38:47 +02:00
parent f02a5b4f20
commit 0d21647573
Signed by: samsapti
GPG key ID: CBBBE7371E81C4EA

View file

@ -10,10 +10,13 @@ command -v npm >/dev/null 2>&1 &&
command -v rustup >/dev/null 2>&1 &&
{ rustup update; echo; }
command -v nvim >/dev/null 2>&1 &&
{ nvim --headless +PlugUpdate +PlugUpgrade +qa; echo; }
{ nvim --headless +PlugUpdate +PlugUpgrade +qa; echo "\n"; }
command -v docker >/dev/null 2>&1 && [ -n "$(sudo docker images -q 2>/dev/null)" ] &&
{ sudo sh -c "docker images |
awk '(NR>1) && (\$2!~/none/) {print \$1\":\"\$2}' |
xargs -l docker pull"; echo; }
zsh -ic "antidote update && echo && git -C $(dirname "$(readlink -e "$0")") pull"
zsh -ic "antidote update; echo"
echo "Updating dotfiles..."
git -C "$(dirname "$(readlink -e "$0")")" pull